一直都把焦點放在z-index的修改上
看到 Tsung's Blog ...哈哈, 我也恍然大悟了. 感謝他
主要是在flash object加入一個設定
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
<param name="MOVIE" value="../Yoshinoya/BrandSingleSeason.swf">
<param name="PLAY" value="true">
<param name="LOOP" value="true">
<param name="WMODE" value="transparent">
<param name="QUALITY" value="high">
<embed src="BrandSingleSeason.swf" width="100%" height="100%" play="true" loop="true"
wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
<param name="MOVIE" value="../Yoshinoya/BrandSingleSeason.swf">
<param name="PLAY" value="true">
<param name="LOOP" value="true">
<param name="WMODE" value="transparent">
<param name="QUALITY" value="high">
<embed src="BrandSingleSeason.swf" width="100%" height="100%" play="true" loop="true"
wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
另外,由Tsung's Blog延伸找到的範例也有詳細的說明 Z-Index and Flash.
後來,又查得JQuery提供一個swf plugin的套件,使用這個插件就無menu被蓋住的問題了.
所以後來參考範例網站後,就改用這個方式 ,程式碼也很簡潔
<script type="text/javascript" src="../Scripts/jquery.swfobject.1-1-1.min.js"></script>
<script type="text/javascript">
function displayFlash(type) {
$('#myFlash').flash({ swf: type, height: '100%', width: '100%' });
}
</script>
<div id="myFlash" >
</div>
進階的使用方法可參考