您好,欢迎访问一九零五行业门户网

关于flash遮盖div浮动层的解决方法_javascript技巧

网上的解决方案:
from:http://codingforums.com/showthread.php?t=95109
(a) place flash embed script in
container (i use swfobject.js)[将flash嵌入脚本放到一个div容器中]
(b) add wmode=transparent to flash embed script[增加wmode=transparent 到flash嵌入脚本]
(c) set container with z-index:-1; [将外层容器的z-index设置为-1]
(d) set tag with style .. position:relative;left:0px;top:0px;z-index:0;
(otherwise firefox does not accept negative z-index)
(e) set floating iframe in container with z-index: 99;[将浮动的iframe在容器中的zindex设置为99]
(f) use css to position flashcontent and htmlcontent containers.[使用css来调整flash容器和html容器的位置]
其他方案网上比较多见,不做阐述.在此说下使用第一个方案如何解决:
复制代码 代码如下:
var so = new swfobject(xxx.swf, flashid, 宽度, 高度, 版本, 背景色);
//设置flash不遮盖div层
so.addparam(wmode, opaque);
so.write(flashcontent);
如此设置即可让flash无法遮盖住div.
其它类似信息

推荐信息