Flash挡住层的解决方法

[ 2009-08-03 16:04:26 | 作者: admin ]
字号: | |
IE环境下
<param name="wmode" value="transparent">
firefox环境下
<embed wmode="transparent"

综合起来可以用下面的代码


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<?php echo $SetWidth?>" height="<?php echo $SetHeight?>" VIEWASTEXT>
  <param name="movie" value="/js/bcastr3/bcastr31.swf">
  <param name="quality" value="high">
  <param name="wmode" value="transparent">
  <param name="FlashVars" value="bcastr_xml_url=<?php echo $SetAdXmlUrl?>&IsShowBtn=1&TitleBgPosition=<?php echo $TitleBgPosition?>&TitleBgAlpha=50">
  <embed src="/js/bcastr3/bcastr31.swf" wmode="transparent" FlashVars="bcastr_xml_url=<?php echo $SetAdXmlUrl?>&IsShowBtn=1&TitleBgPosition=<?php echo $TitleBgPosition?>&TitleBgAlpha=50" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?php echo $SetWidth?>" height="<?php echo $SetHeight?>"></embed>
</object>





=========================================================
给flash加上以下两句之一即可(无需给div加z-index):
<param name="wmode" value="transparent" /> 或
<param name="wmode" value="opaque" />


如果是使用DW“插入记录--媒体--flash”方式加入动画,加好后代码类似于(红色为手工加上的):

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0&#39;,&#39;width&#39;,&#39;650&#39;,&#39;height&#39;,&#39;150&#39;,&#39;src&#39;,&#39;banner&#39;,&#39;quality&#39;,&#39;high&#39;,&#39;pluginspage&#39;,&#39;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&#39;,&#39;movie&#39;,&#39;banner&#39;,&#39;wmode&#39;,&#39;opaque&#39; ); //end AC code
</script><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="650" height="150">
                    <param name="movie" value="banner.swf" />
                    <param name="quality" value="high" />
                    <param name="wmode" value="opaque" />
                    <embed src="banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="650" height="150"></embed>
          </object></noscript>
[最后修改由 admin, 于 2013-12-05 12:30:00]
评论Feed 评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=1259

这篇日志没有评论。

此日志不可发表评论。