今天遇到个问题,就是在视频上添加跳转链接时,谷歌浏览器能正常跳转,但是ie下,却无效,视频使用object引入,<a>标签跟随其后采用绝对定位,和平时的图片加跳转操作一样。原来是需要加上<param name="wmode" value="opaque">,否则IE下<a>标签会失效,无法实现点击跳转。
其作用是:使flash置底,让a标签能位于上层。
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="560" height="210">
<param name="movie" value="xxxx.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque">
<embed src="xxxx.swf" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
width="560" height="210"></embed>
</object>
PS:如果想让flash透明,可以这样:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockw
ave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="190">
<param name="movie" value="xxxx.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="xxxx.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashp
layer" type="application/x-shockwave-flash" width="300" height="190"></embed>
</object>