The order of Flash and DIV cascade, flashdiv Cascade

Source: Internet
Author: User

The order of Flash and DIV cascade, flashdiv Cascade

Many people encounter this problem when writing Page code, that is, when Flash overlaps with other HTML structures in the page, Flash is always displayed at the top by default, so as to block the HTML structure that overlaps with it, even if the z-index attribute is defined for the Flash or HTML structure tag, it is still invalid.

By default, Flash files added to webpages exist in the browser in the window mode and are rendered independently of the browser's HTML structure, in this case, the Flash will cover the HTML that overlaps with it.

In the release settings of Adobe Flash, the setting of HTML is "window mode", which provides three options: window) opaque and transparent ).


These three modes represent three forms of Flash in the page. Based on these three forms, we have found a solution to this problem, that is, the Flash mode (wmode) in the page) set to opaque or transparent. In both modes, the Flash on the page is at the same level as the HTML structure, therefore, you can use z-index to control whether the overlapping part of the page is displayed in Flash or in the HTML structure.

This method can be used when we need to load a pop-up Flash advertisement on the page and do not want it to be blocked by other Flash files on the page. Similarly, if the pop-up Flash is irregular, you can set the mode (wmode) to transparent without a window (transparent), which can remove the background of Flash.

IE
<Param name = "wmode" value = "Opaque">
In firefox
<Embed wmode = "transparent"> </embed>

Generally, both are added.

Related Article

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.