在做web开发中可能会遇到flash遮挡页面中元素的情况,无论怎么设置flash容器和层的深度(z-index)也无济于事,现有的解决方案是在插入flash的embed或object标签中加入”wmode”属性并设置为wmode=“transparent”或”opaque”,但wmode属性到底是什么意义,为什么可以解决这个问题呢? (more…)
Archive for the ‘Flash & Actionscript’ Category
flash wmode参数详解
Tuesday, August 10th, 2010关于使flash透明(IE,firefox,safari均支持的方法)
Saturday, January 23rd, 2010可能大家在网页里添加flash的时候,总会遇到浏览器兼容的问题,下面我要说的是关于flash在网页中透明的问题:
代码展示:
<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="770" height="148"> <param name="movie" value="swf/top.swf" /> //针对ie浏览器 源文件 <param name="quality" value="high" /> <param name="wmode" value="transparent" /> //针对ie浏览器 透明属性 <embed src="swf/top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashp layer" type="application/x-shockwave-flash" width="770" height="148"></embed> //针对firefox浏览器 源文件加透明属性 </object>