Home  >  Article  >  Web Front-end  >  Solution to flash covering div floating layer_javascript skills

Solution to flash covering div floating layer_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:22:551209browse

Online solution:
From:http://codingforums.com/showthread.php?t=95109
(a) place Flash embed script in

container (I use SWFObject.js)[will Put the flash embed script into a div container]
(b) add wmode=transparent to Flash embed script[Add wmode=transparent to flash embed script]
(c) set
(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;[set floating iframe in container with zindex Set to 99]
(f) use CSS to position flashcontent and htmlcontent containers. [Use css to adjust the position of the flash container and html container]

Other solutions are more common online and will not be explained. In Let’s talk about how to solve it using the first solution:

Copy code The code is as follows:

var so = new SWFObject("XXX.swf", "flashId", "width", "height", "version", "background color");
//Set flash not to cover the div layer
so.addParam ("wmode", "opaque");
so.write("flashcontent");

With this setting, flash cannot cover the div.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn