1

問題是什麼?
Internet Explorer 9(包括本地和網絡上的)無法在隨機刷新時加載我的Flash廣告條。例如,我剛完成19次頁面重新加載,以及第19次加載橫幅。如果我使用強制刷新(CTRL + F5)或完全清除緩存(甚至手動轉儲Temporary Internet Files目錄),它在解決這種情況時確實沒有好處。這讓我相信這不是緩存問題。 Chrome瀏覽器& Chrome始終以完美的方式加載它,但我需要在IE中工作,因爲該網站主要面向的是觀衆。IE9無法在「SOME」刷新時加載Flash(使用AS 2.0)

我如何導出這個Flash文件並嵌入它?
我正在使用Flash CS5的Flash橫幅,將.swf導出爲Flash Player 8/Actionscript 2.0。

我已經嵌入從Dreamweaver CS5確實上默認的閃光燈,但添加了輔助(圖像)如果閃存播放器是不存在或早於Flash播放器6.這裏是嵌入代碼:

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="778" height="313" title="title"> 
    <param name="movie" value="file.swf" /> 
    <param name="quality" value="high" /> 
    <param name="wmode" value="transparent" /> 
    <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" /> 
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> 
    <!--[if !IE]>--> 
    <object type="application/x-shockwave-flash" data="file.swf" width="778" height="313" title="title"> 
     <!--<![endif]--> 
     <param name="quality" value="high" /> 
     <param name="wmode" value="transparent" /> 
     <param name="swfversion" value="6.0.65.0" /> 
     <param name="expressinstall" value="Scripts/expressInstall.swf" /> 
     <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> 
     <div class="alternative_logo">&nbsp;</div> 
     <!--[if !IE]>--> 
    </object> 
    <!--<![endif]--> 
    </object> 

我如果有人能幫我解決這個問題,那麼這將會非常有用。感謝您的時間。

回答

1

您應該考慮使用swfobject來嵌入SWF。它很好地處理各種瀏覽器怪癖。

來自實例Official Documentation採取:

<!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> 
    <title>SWFObject - step 3</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    <script type="text/javascript" src="swfobject.js"></script> 

    <script type="text/javascript"> 
    swfobject.registerObject("myId", "9.0.115", "expressInstall.swf"); 
    </script> 

    </head> 
    <body> 
    <div> 

     <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"> 

     <param name="movie" value="myContent.swf" /> 
     <!--[if !IE]>--> 
     <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420"> 
     <!--<![endif]--> 
      <p>Alternative content</p> 
     <!--[if !IE]>--> 
     </object> 
     <!--<![endif]--> 
     </object> 
    </div> 
    </body> 
</html> 
+0

問題解決了!很高興知道;謝謝! – WebMW 2012-04-25 02:07:27