About how to cover Div floating layer with Flash

Source: Internet
Author: User

Online solutions:

From: http://codingforums.com/showthread.php? T = 95109
(A) Place flash embed script in <div> container (I use swfobject. JS) [embed the flash script into a div container]

(B) Add wmode = transparent to flash embed script [add wmode = transparent to flash embedded script]

(C) Set <Div id = "flashcontent"> container with Z-index:-1; [set the Z-index of the outer container to-1]

(D) Set <body> 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 zindex of floating IFRAME in container to 99]

(F) Use CSS to position flashcontent and htmlcontent containers. [Use CSS to adjust the position of flash and HTML containers]

 

Other solutions are more common on the Internet. I will not elaborate on them. Here I will explain how to solve the problem by using the first solution:

 

VaR so = new swfobject ("xxx.swf", "flashid", "width", "height", "version", "background color "); // set the so for the DIV layer not covered by flash. addparam ("wmode", "Opaque"); so. write ("flashcontent ");
 
<Div id = "flashcontent"> </div>

With this setting, flash cannot hide the div.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.