Solution for flash to always be at the top layer (so that the flash object is under the DIV layer)

Source: Internet
Author: User

Most of the time, when we insert Flash into the page, we will find that flash is an object, and the page will always put it at the top by default, in this way, the drop-down menu that is closely attached to flash is invisible to the backend. The setting layer is useless.
This becomes very passive when pages are generated, so I made a floating layer, the original page has flash, but no matter how high I adjust the floating layer's Z-index, this layer will always be covered by flash, so it can only be invisible to the floating layer mobile flash ~ After trying, I found that you can insert <Param name = wmode value = transparent> in <Object>. Here are some additional information to explain.
<! -- One is the role played by IE: -->
<Param name = "wmode" value = "Transparent"/>
<! -- The other one plays a role in Firefox: -->
<Embed src = "yourflash.swf" wmode = "Transparent"...> </embed>

I also tried to add a parameter in flash, wmode = opaque, which is also acceptable, why?

After reading this explanation, I still don't understand it ~ ···················

Optional. supports transparent Flash content, absolute positioning, and hierarchical display in Internet Explorer 4.0. This tag/attribute is only valid in windows with the Flash Player ActiveX control.

"Window" uses the film's own rectangular window on the Web page to play the appProgram. "Window" indicates that the flash application has no interaction with the HTML layer and is always at the top layer.

"Opaque" hides all content on the page after the application.

"Transparent" enables the background of an HTML page to be displayed through all the transparent parts of the application, and may reduce the animation performance.

Both "Opaque windowless" and "transparent windowless" can interact with the HTML layer to allow the layer above the SWF file to mask the application. The difference between the two options is that "Transparent" allows transparency. Therefore, if a part of the SWF file is transparent, the HTML layer below the SWF file can be displayed through this part, "Opaque" is not displayed.

If this attribute is ignored, the default value is window. Only applies to objects.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
This is a parameter that enables the flash to display at the bottom of the page.
Wmode = opaque
This modification allows other elements to overwrite the flash.

Properties of wmode:
wmode = Window: Play the application using the film's own rectangular window on the web page. "Window" indicates that the flash application has no interaction with the HTML layer and is always at the top layer.
wmode = opaque hides all content on the page that is behind it.
wmode = transparent allows the background of an HTML page to be displayed through all the transparent parts of the application, and may reduce the animation performance.
both "Opaque windowless" and "transparent windowless" can interact with the HTML layer to allow the layer above the SWF file to mask the application. The difference between the two options is that "Transparent" allows transparency. Therefore, if a part of the SWF file is transparent, the HTML layer below the SWF file can be displayed through this part, "Opaque" is not displayed.

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.