Flash无法在Chrome,FF,Safari上运行,但它正在使用IE浏览器

时间:2013-09-23 19:13:18

标签: html css flash google-chrome

我犯了一个巨大的错误,就是获得一个模板而不仅仅是自己开发。现在我已经缩小了问题范围 - 首先,我认为实际的Flash文件存在问题。现在我每次在HTML编辑器中更改图像时都会意识到这一点,这对我来说没有任何逻辑意义。这是flash文件的代码:

<body id="page1" onload="new ElementMaxHeight()">
   <div id="main">
   <!-- header --> 
   <div id="header">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/…; width="940" height="417"></object><!----> <![endif]-->
   </div>
   <!-- content --> 
   <div id="content">

同样,它在IE上运行得很好,但没有别的,这是我在网上看不到的一个转折点。

感谢您提供的任何反馈。

1 个答案:

答案 0 :(得分:0)

我确定这个答案已经在这里,但我会发布一个我一直使用的通用代码。 只需放置整个块并更改相关值,swf属性。

     <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="377">
         <param name="movie" value="myMovie.swf">
         <param name="quality" value="high">
         <param name="wmode" value="direct" >
         <param name="swfversion" value="6.0.65.0">
         <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
         <param name="expressinstall" value="Scripts/expressInstall.swf">
         <param name="SCALE" value="noborder">
         <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
             <!--[if !IE]>-->
         <object type="application/x-shockwave-flash" data="myMovie.swf" width="950" height="377">
         <!--<![endif]-->
         <param name="quality" value="high">
         <param name="wmode" value="direct" >
         <param name="swfversion" value="6.0.65.0">
         <param name="expressinstall" value="Scripts/expressInstall.swf">
         <param name="SCALE" value="noborder">
         <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
         <div>
         <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
         <p><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" /></a></p>
        </div>
        <!--[if !IE]>-->
        </object>
            <!--<![endif]-->
     </object>