FLASH遮挡DIV浮动层解决方案兼容IE FF Chrome
网站建设 2021-07-03 08:43www.dzhlxh.cn网站建设
做项目的时候经常会遇到DIV浮动层被FLASH遮挡的,狼蚁网站SEO优化给出解决方案。
IE下:
<param name="wmode" value="transparent" />
FireFox和Chrome下:
<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" width="480" height="405" wmode="transparent"></embed>
完整格式:
<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="480" height="405">
<param name="movie" value="http://player.56.com/v_ODk4OTI0NjA.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="480" height="405" wmode="transparent"></embed>
</object>
注意插入优酷视频和插入flash的方式是一样的, 注意一些标签不可省略
IE下:
复制代码
代码如下:<param name="wmode" value="transparent" />
FireFox和Chrome下:
复制代码
代码如下:<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" width="480" height="405" wmode="transparent"></embed>
完整格式:
复制代码
代码如下:<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="480" height="405">
<param name="movie" value="http://player.56.com/v_ODk4OTI0NjA.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="480" height="405" wmode="transparent"></embed>
</object>
注意插入优酷视频和插入flash的方式是一样的, 注意一些标签不可省略