views:

150

answers:

4

Is it possible to position: absolute a <div /> over a Flash banner without adding wmode="transparent" to the banner?

I have a lightbox that needs to appear above my ads but I can't directly modify the banners as they come from a third party.

Edit: The problem mainly occurs in IE where the Flash banner is shown above the lightbox.

A: 

I am afraid no, if this was the case, we wold not have resorted to wmode="transparent", but i hope there is a way around it.

Sarfraz
Yeah, that's what I was afraid of.
Sam
+2  A: 

No it's not but you can just hide the banners when the lightbox is active.

vise
This was my last-resort. Thanks for answering. For what it's worth, setting `visibility: hidden` on the Flash will stop your page jumping around like `display: none` would.
Sam
A: 

try

wmmodde="opaque"
i think this will allow html div to be displayed over flash. It works for me many times but it behaves differently in different browsers.

lakhlaniprashant.blogspot.com
I can't directly access the Flash code - it comes from a third party.
Sam
thanks for -1, you can modify object or embed tag using DOM, isn't it?
lakhlaniprashant.blogspot.com
You can't dynamically set wmode on object / embed tags. It's only read when the Flash is initialised.
Sam
A: 

I haven't tested this, but you could try the iFrame hack you would apply for IE to show an absolute div over a select element. It consists of dynamically (or even hard-coded, why not) creating an iFrame container that you position above the Flash (in your case) with the lightbox content inside it.

Someone correct me if they tested and does not apply here, but even if it does, I wouldn't recommend it unless it's a life or death situation.

treznik