2011-05-25 59 views
0

我在我的网站上,除IE浏览器之外的所有其他浏览器上都有Flash动画。头部与对象大小相同。Flash动画不想显示IE

<div id="header"> 
      <object style="width: 760px; height: 128px; margin-top: 3px" codebase="http://test.eu-seed.net/safenet/pict/banner3.1.swf"> 
       <param name="movie" value="http://test.eu-seed.net/safenet/pict/banner3.1.swf" /> 
       <embed src="http://test.eu-seed.net/safenet/pict/banner3.1.swf" quality="high" width="760" 
        height="128" name="myMovieName" type="application/x-shockwave-flash" pluginpage="http://www.macromedia.com/go/getflashplayer"> 
     </embed> 
      </object> 
     </div> 

可能是什么问题?

回答

1

这里是嵌入Flash影片的正确方法:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
    <head>  
    </head> 
    <body>  
     <div id="flashContent"> 
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="506" height="310" id="player" align="middle"> 
       <param name="movie" value="http://test.eu-seed.net/safenet/pict/banner3.1.swf" /> 
       <param name="bgcolor" value="#FFFFFF" /> 
       <!--[if !IE]>--> 
       <object type="application/x-shockwave-flash" data="player.swf" width="506" height="310"> 
        <param name="movie" value="http://test.eu-seed.net/safenet/pict/banner3.1.swf" /> 
        <param name="bgcolor" value="#FFFFFF" /> 
       <!--<![endif]--> 
        <a href="http://www.adobe.com/go/getflash"> 
         <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> 
        </a> 
       <!--[if !IE]>--> 
       </object> 
       <!--<![endif]--> 
      </object> 
     </div> 
    </body> 
</html> 

我也建议更换您使用SWFObject。

+0

谢谢,为我工作 – mikrimouse 2011-05-25 14:26:16