IE flash背景问题(swfobject)
我一直在慢慢地调整这个网站以在浏览器上工作,我只需要一些帮助让它在 ie 上工作。
我有一个完整的页面 Flash 背景,显然在 IE 中不显示 - polivision.tv/test.html
使用 swfobject,代码的 html 是
<object id="background_vid" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="background-vid.swf" />
<param name="loop" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000" />
<param name="wmode" value="opaque" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="background-vid.swf" width="100%" height="100%">
<param name="loop" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000" />
<param name="wmode" value="opaque" />
<!--<![endif]-->
<div>
<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" title="Get Adobe Flash player" /></a><br />
You need <a href="http://www.adobe.com/go/getflashplayer">Flash Player 8</a> and allow javascript to see the content of this site..
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
谢谢, 庄马
I've slowly been adapting this site to work on browsers and I just need some help getting it working in ie.
I have a full page flash background that apparently does not show in IE - polivision.tv/test.html
Using swfobject, the html for the code is
<object id="background_vid" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="background-vid.swf" />
<param name="loop" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000" />
<param name="wmode" value="opaque" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="background-vid.swf" width="100%" height="100%">
<param name="loop" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000" />
<param name="wmode" value="opaque" />
<!--<![endif]-->
<div>
<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" title="Get Adobe Flash player" /></a><br />
You need <a href="http://www.adobe.com/go/getflashplayer">Flash Player 8</a> and allow javascript to see the content of this site..
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
Thanks,
Shoma
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的条件注释语法错误..应该是..
;
但不确定这是否能解决您的问题。如果这不起作用,请告诉我。
另外,您不再需要
clsid
,只需对 IE 和 Fx 使用type
即可。无论如何,您都应该指定movie
参数。swfobject
在其中如何发挥作用?你没有使用任何js吗?you have the wrong syntax for conditional comments.. it should be..
<!--[if !IE]>-->
<![endif]-->
Not sure if that solves your problem though. Let me know if that doesn't do it.
Also, you dont need the
clsid
anymore, you can just usetype
for both IE and Fx. You should specify themovie
parameter regardless.How does
swfobject
play a role in this? You're not using any js?http 上有一个完整浏览器 SWF 的工作示例: //learnswfobject.com/advanced-topics/100-width-and-height-in-browser/
它已在 IE、Firefox(Mac 和 Windows)、Safari(Mac 和 Windows)中成功测试,和 Opera(Mac 和 Windows)。我建议复制源代码并根据需要进行编辑。
注意:
there's a working example of a full-browser SWF at http://learnswfobject.com/advanced-topics/100-width-and-height-in-browser/
it has been successfully tested in IE, Firefox (Mac & Windows), Safari (Mac & Windows), and Opera (Mac & Windows). i suggest copying the source code and editing it as needed.
notes: