很多时候,当你有一个层是需要漂浮在页面之上显示的时候,而你的页面里又存在FLASH,这个时候,漂浮层会被FLASH遮挡住,那么解决办法就是给FLASH设置背景透明属性。

 

添加参数<param name="wmode" value="transparent">  //可很好的被IE浏览器所支持

将 wmode="transparent" 加入到<embed>标签内  //可很好的被FireFox等浏览器所支持

示例:

<noscript>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0 " width="744" height="60">
    <param name="movie" value="Templates/default/images/02.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="Templates/default/images/02.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash " type="application/x-shockwave-flash" width="744" height="60" wmode="transparent"></ embed>
  </object>
  </noscript>

 

如果是被JS调用显示FLASH,则在调用函数内添加参数'wmode','transparent'

示例:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','744','height','60','src','Templates/default/images/02','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Templates/default/images/02','wmode','transparent' ); //end AC code
</script>