0
有人知道你是如何將設置從SwfObject傳遞給Jquery SwfObject的? 我找不到合適的文檔。 我知道它使用div的尺寸,但這沒有問題。將SwfObject的設置傳遞給Jquery SwfObject?
jQuery的原SwfObject的:
<script type="text/javascript">
var flashvars = {};
flashvars.xmlPath = 'stripped_images.xml';
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.bgcolor = "#000000";
params.allowfullscreen = "true";
params.allowscriptaccess = "always";
params.wmode = "opaque";
var attributes = {};
swfobject.embedSWF("main_stripped.swf?" + Math.round(Math.random() * 10000), "myContent", "100%", "100%", "9.0.0", false, flashvars, params, attributes);
</script>
的新的jQuery SwfObject的:
FlashBackground = $.flash.create(
{
swf: 'main_stripped.swf',
params: {
scale : "noscale",
salign : "tl",
bgcolor : "#000000",
allowfullscreen : "true",
allowscriptaccess : "always",
wmode : "opaque"
},
flashvars: {
xmlPath : 'stripped_images.xml',
},
attributes: {
?
}
}
);