fmsf
fmsf

Reputation: 37167

Why is my Flash animation overlaying my div position?

I am using FancyBox to generate a popup image.

FancyBox (In case you are curious.)

It pops up a div with z-index: 92;.

I have a Flash animation running which is far below that z-index.

My problem is that in two different Firefox browsers (same versions) I have different results.

In one, everything appears OK. In the other, the Flash animation appears in front of the div. I have tried refreshing and restarting the browser but the same issue always occurs.

I know one of the screen shots is from IE but it is only meant as a reference.

What could I be doing wrong?

http://www.my-clock.net/tmp/sreen01.jpg

alt text http://www.my-clock.net/tmp/sreen02.jpg

Upvotes: 1

Views: 3300

Answers (5)

Kaz Fernandes
Kaz Fernandes

Reputation: 31

Remember that you need to set the wmode parameter separately for IE and other browsers:

<param name="wmode" value="opaque" /> <!-- for IE -->
<embed src="images/banner/banner.swf" quality="high" wmode="opaque" ... <!-- for other browsers-->

Upvotes: 1

eespindola
eespindola

Reputation:

What if you can't change the flash modes because it's a banner from a network like AdSense?

Upvotes: 0

Ms2ger
Ms2ger

Reputation: 15993

While wmode=transparent will work, it causes quite a performance hit. You'll probably get better results with wmode=opaque.

Upvotes: 0

schnaader
schnaader

Reputation: 49729

You could try to paste some of your CSS code at w3schools TryIt Editor to check if it is correct and z-index works as you think.

Upvotes: 1

jacobangel
jacobangel

Reputation: 6996

Try setting your wmode = transparent on the flash. This will keep flash from laying over top of everything no matter what z-index you set it to.

Upvotes: 11

Related Questions