在Firefox但不是IE中加载SWF文件 [英] SWF File loading in Firefox but Not IE
问题描述
嘿,我有以下代码加载swf
hey well I have the following code loading an swf
<object style="visibility: visible;" id="myContent" data="http://www.norble.com/demo/mp3/playlist/preview.swf?t=1286488645000?stageW=525&stageH=300&pathToFiles=&settingsPath=http://www.norble.com/demo/mp3/playlist/xml/player_settings.xml&xmlPath=http://www.norble.com/demo/mp3/playlist/xspf.php?id=4&imageWidth=140&imageHeight=200" type="application/x-shockwave-flash" width="560" height="300">
</object>
但由于某种原因,它没有在Internet Explorer中显示播放列表,有没有人有任何想法?
but for some reason it's not displaying the playlist in internet explorer, does anyone have any ideas?
谢谢!
推荐答案
将静态嵌入到IE中有点不同于Firefox浏览器。如果您查看文档此处,则需要一个额外的对象标记对于IE。他们的示例粘贴在下面以供参考。
Statically embedding flash into IE is a little different than firefox. If you look at the documentation here there is an extra object tag that's needed for IE. Their example is pasted below for reference.
虽然你真的应该使用SWFObject2 http://code.google.com/p/swfobject/ 嵌入您的内容。但是如果没有启用javascript,静态就好了。
Though really you should be using SWFObject2 http://code.google.com/p/swfobject/ to embed your content. But the static is good as a fall back if javascript isn't enabled.
<object id="myFlashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="120">
<param name="movie" value="test.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="300" height="120">
<!--<![endif]-->
<a href="/go/getflashplayer">
<img src="/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
这篇关于在Firefox但不是IE中加载SWF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!