SWF File loading in Firefox but Not IE

微笑、不失礼 提交于 2019-12-25 02:14:49

问题


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&amp;stageH=300&amp;pathToFiles=&amp;settingsPath=http://www.norble.com/demo/mp3/playlist/xml/player_settings.xml&amp;xmlPath=http://www.norble.com/demo/mp3/playlist/xspf.php?id=4&amp;imageWidth=140&amp;imageHeight=200" type="application/x-shockwave-flash" width="560" height="300">
    </object>

but for some reason it's not displaying the playlist in internet explorer, does anyone have any ideas?

Thanks!


回答1:


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.

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>



回答2:


The easiest way to write cross-browser SWF embeds is using SWFObject.

Check it out here: http://code.google.com/p/swfobject/



来源:https://stackoverflow.com/questions/6258258/swf-file-loading-in-firefox-but-not-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!