[ASP.net] Flash(.swf)檔在Firefox上消失(or變小)的解決方式

[ASP.net] Flash(.swf)檔在Firefox上消失(or變小)的解決方式

Flash檔在HTML上是用<object>標籤包住

但是Firefox不認識<object>,它只認<embed>

所以要在HTML上正確顯示Flash檔的建議寫法(適用IE6+、Firefox):

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' 
 codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='1002' height='190'>
    <param name='movie' value='檔案Url位址' />
    <param name='quality' value='high' />
    <param name='wmode' value='transparent' />
        <embed src='檔案Url位址' quality='high' 
         pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'
         wmode='transparent' width='1002' height='190'>
        </embed>
        <span style='display:none;'>說明文字</span>
</object> 
 
 
另外,若Flash有使用到getUrl另開視窗網頁的話,需修改參數allowScriptAccess=always