将设置从 SwfObject 传输到 Jquery SwfObject?
有人知道如何将设置从 SwfObject 传输到 Jquery SwfObject 吗? 我找不到合适的文档。 我知道它使用 div 的尺寸,但这没问题。
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: {
?
}
}
);
Does somebody know how you transfer the settings from SwfObject to Jquery SwfObject?
I cant find the right documentation for this.
I know it uses the dimensions of the div but that's no problem.
Jquery original 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>
The new 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: {
?
}
}
);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是对的。您没有使用原始版本中的任何属性,因此您不会使用该插件。
This is right. You aren't using any attributes in the original, so you wouldn't with the plugin.