Search

10/20/2007

如何使用z-index蓋住flash

Tsung's Blog | CSS: 讓圖片蓋在 Flash Player 上面(使用 z-index) - 最近遇到一個一模一樣的問題, 一個z-index比較大的 element 蓋不住 flash, 解法是設定為 wmode="opaque"


  • wmode = "window" , default, flash player在最上層
  • wmode = "opaque" , flash player 介於 element 與 element的背景中間
  • wmode = "transparent", flash player 位於 element 的背景下方
針對 <object>/<embed> 的設法:
* 於 <object> 內加 <param name="wmode" value="transparent">, ex: <object>.... <param name="wmode" value="transparent"> ...</object>
* 於 <embed> 內加 wmode="transparent" 參數, ex: <embed wmode="transparent" ....>

針對 AC_RunActiveContent.js 的設法:

* 於 AC_FL_RunContent() 多加 'wmode', 'transparent' 的參數, ex: AC_FL_RunContent(.... 'wmode', 'transparent' ...);
* <noscript> 內, 應該最好也要加如上述 <object>/<embed> 的參數.

沒有留言: