HTML object over SWF

I have a SWF video player on my web page. I want to draw a div tag with a high z index above it to act like a popup. This is a very common popup. Therefore, I cannot make this part of SWF. but SWF seems to have a very high zIndex and will not allow any HTMLO environment to sit above it. How can I achieve this or is there an alternative solution.

Thanks.

+3
source share
3 answers

There are several arguments that must be passed to the SWF file to make this possible. In the HTML view inside the object tag, you must put:

<param name="wmode" value="transparent">

and...

<embed wmode="transparent" ... 

, JS- SWF.

+9

flash <param NAME="wmode" VALUE="transparent">, "" html

oh wmode = "transparent" embed

+3

A quick and dirty technique is to replace swf with a black and white image (just another class for the swf container with a duplicate background image) every time you show your overlay div, and then change it to normal when the overlay div is close.

Another method uses iframe for swf, but it is not too interesting, I think :)

+1
source

Source: https://habr.com/ru/post/1702293/


All Articles