Today I was testing the interaction between the div layer and flash, and found that the div layer was always covered by the flash layer. After searching on Baidu for a while, I found that adding <param name="wmode" value="transparent" /> would work. After adding it, the problem was solved in IE, but there seemed to be no response in FF. Later I found out that the codes added in IE and FF were different, as follows:
Available in IE browser
<param name="wmode" value="transparent" />
Available under firefox
<embed src="YourFlash.swf" wmode="transparent" >
...
</embed>
About wmode attribute information:
(Optional) Allows use of transparent Flash content, absolute positioning, and layered display features in Internet Explorer 4.0. This tag/property is only valid in Windows with the Flash Player ActiveX control.
"Window" uses the video's own rectangular window to play the application on the Web page. "Window" indicates that this Flash application has no interaction with the HTML layer and is always on top.
"Opaque" causes the application to hide everything behind it on the page.
"Transparent" causes the background of the HTML page to show through any transparent parts of the application and may reduce animation performance.
"Opaque windowless" and "Transparent windowless" both interact with HTML layers, 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 underneath the SWF file can show through that part, while "opaque" does not. .