SWFobject 似乎给swf添加参数没有效果
我正在尝试将 swf 文件嵌入到我的 html 代码中。 我正在使用 swfobject 2 JS 库。
代码如下所示:
<script type="text/javascript" src="/site_media/js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noborder";
params.bgcolor = "#ffffff";
var attributes = {};
attributes.id = "plist";
attributes.align = "top";
params.seamlesstabbing = "true";
swfobject.embedSWF("/site_media/goapp/usersList.swf", "myAlternativeContent", "1000", "800", "9.0.0", false, flashvars, params, attributes);
</script>
我期望应用程序的背景颜色变为白色,但实际上,加载的应用程序没有任何反应,并且它具有默认的颜色主题。 此外,对齐也没有任何作用。
请帮助我了解如何更改 swf 应用程序的背景颜色,并使其看起来像页面的一部分(例如,没有滚动条的缩放等)
I am trying to embed swf file into my html code. I am using swfobject 2 JS lib.
The code looks like following:
<script type="text/javascript" src="/site_media/js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noborder";
params.bgcolor = "#ffffff";
var attributes = {};
attributes.id = "plist";
attributes.align = "top";
params.seamlesstabbing = "true";
swfobject.embedSWF("/site_media/goapp/usersList.swf", "myAlternativeContent", "1000", "800", "9.0.0", false, flashvars, params, attributes);
</script>
I expected the background color of the app to became white, but actually, nothing happens to loaded application, and it has it's default color themes. Also alignment dosn't do anything as well.
Please help my to understand how to change bg color of swf application, and make it look like a part of the page (e.g. scale without scrollbars, etc)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
恐怕 yoiu 缺少安装 swf 文件
,否则您可能需要将该参数设置为 null。 快速检查 swfObject 的文档
I am afraid yoiu are missing the install swf file
otherwise you might want to set that parameter to null. Quickly check the doc for swfObject