JavaScript 和 Flash 与 IE 不兼容
我有一个 JavaScript 图片库。画廊下方的箭头可以移动画廊的所有图片。当我向该页面添加一个 .SWF Flash 动画时,图库箭头在 IE 中停止正常工作。但在其他浏览器中,如 Mozilla、Google Chrome、Opera 等,它可以工作!我已经删除了 .SWF,它也可以在 IE 中运行。
这是我实例化 .SW 的代码:
<embed src="ads/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="180" style="margin:0px; padding:0px; border:0px hidden; outline:0px; overflow:hidden; background-color:#c2c6c9;"></embed>
请帮助我了解此时 IE 出了什么问题。 :)
I have a JavaScript Picture gallery. The arrows under the gallery make possible to move through all pictures of the gallery. When I have added to that page also a .SWF flash animation the gallery arrows stoped working properly in IE. But in other browsers like Mozilla, Google Chrome, Opera and so on it works! I have removed the .SWF and it is working in IE as well.
Here is the code where I have instantiated the .SW:
<embed src="ads/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="180" style="margin:0px; padding:0px; border:0px hidden; outline:0px; overflow:hidden; background-color:#c2c6c9;"></embed>
Please help me to understand at this time what's wrong with IE. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IE 不支持
;从 IE 5.5 开始就没有了。请参阅 KB303401。
Flash 嵌入策略的一些讨论。
IE doesn't support
<embed>
; it hasn't since IE 5.5. See KB303401.Some discussion of Flash embedding strategies.
尝试使用 Adobe 在此解释的正确语法:
http://kb2.adobe.com/ cps/415/tn_4150.html
这是:
Try using the proper syntax which Adobe explains here:
http://kb2.adobe.com/cps/415/tn_4150.html
which is: