hello, I need to display a div that may overlap or float on top of a flash object and Im having some real problems with this. The floating div displays beneath the flash object. Its like the old problem with displaying an iframe over a select element.
I know one way is setting the flash object param to transparent, but I have no control over the flash object code. Its a floating div in an iframe and the src of the iframe might be any site out there. It needs to be done completely with js or css. or a combination of the two.
I really hope this is possible. The outlook I have found searching with google is very grim.
My idea is no guarantee, but I've seen this method in the past and it appeared to be done with only those two CSS rules. I never really dug through the JS though, so I could be missing a few tricks.
The solution is that the Flash wmode paramater must be set to either "opaque" or "transparent". The actual method of doing this would depend on how the SWF is embedded in your page (i.e., SWFObject-style JS injection, object tag, etc.). Screwing around with z-levels won't make any difference without this parameter being set correctly.
Yes you need to set your position on the div to relative, absolute or fixed and then set the z-index greater to the z-index of the flash content. That's the easy part and the part that we already know.
The last thing to do is set the wmode of the flash content to transparent. In my case, I found the wmode variable in the HTML generated by Flash CS3. It was set to 'window'. I changed it to 'transparent' and bam.
You might be able to change this in Flash publish settings so that you never have to worry about it again. In this case, knowing javascript, css and html aren't enough. You need to know something about how flash is implemented.