Flash blocking Div Floating layer solution compatible with IE FF Chrome

Source: Internet
Author: User
Tags relative

In the construction of the site will often encounter, Div layer by flash block or div layer by video file blocking the situation

In the use of Z-index no effect, and finally found a very concise answer, first recorded to facilitate the same problem to meet the next solution.

Flash solution, the code is as follows:


<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″codebase=" http://download.macromedia.com/pub/ Shockwave/cabs/flash/swflash.cab#version=7,0,19,0″>
<param name= "movie" value= "video/a.swf"/>
<param name= "Quality" value= "High"/>
<param name= "wmode" value= "Transparent"/>
<embed src= "video/a.swf" wmode= "Transparent" quality= "High" pluginspage= "http://www.macromedia.com/go/" Getflashplayer "type=" Application/x-shockwave-flash "></embed>
</object>

Focus:

1. <param name= "wmode" value= "Transparent"/>
2. <embed wmode= "Transparent" >

Add wmode= "Transparent" attribute in <embed >, the problem of Firefox middle class will be solved.
Video file resolution, the code is as follows:

<div style= "relative; Width:.; Height:.; Overflow:hidden; " >
<embed src= "video file Address" windowlessvideo= "1" ></embed>
</div>

Description: windowlessvideo= "1″ plus this parameter is very important, in the IE series of browsers, with this parameter can let div layer normal display in the top of the video file."

Style= "relative; Width:.; Height:.; Overflow:hidden; " This sentence is to solve the problem under FF.
Set the Flash bottom, add a code: <param name= "wmode" value= "opaque"/>
But only add this code, ie feasible, under FF, failure. To work under FF, add a wmode= "opaque" in <object >

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.