Get the App
SLTechnology News&Howtos  ›  Development  › 

How to put the DIV layer on top of flash

Shulou Source: shulou.com Published: 2022-06-03 06:08:23 11月15日 Update

This article is about how to put the DIV layer on top of flash. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

There are two kinds: (different browsers)

1. Available under IE browser

The code is as follows:

2. Available under firefox

The code is as follows:

For information about wmode attributes:

(optional) allows the use of transparent Flash content, absolute positioning, and hierarchical display in Internet Explorer 4.0. This tag / attribute is valid only in Windows with a Flash Player ActiveX control.

"Window" plays the application with the movie'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 level.

"Opaque" causes the application to hide everything behind it on the page.

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

Both "Opaque windowless" and "Transparent windowless" interact with the HTML layer, allowing the layer above the SWF file to obscure the application. The difference between the two options is that "Transparent" allows transparency, so if a part of the SWF file is transparent, the HTML layer below the SWF file can be displayed through that section, while "opaque" will not.

The flash code should be written as follows:

The code is as follows:

The red part is that div is displayed on top of flash, that is, flash is displayed at the bottom, transparent.

Thank you for reading! This is the end of the article on "how to put the DIV layer on top of flash". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Applications programs applications code content files parts properties more browsers articles browsing different good practical effective between that is functions animation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MySQL vpn MariaDB Shulou Technology