Gavin
Gavin

Reputation: 593

sIFR 3.0 and sWmode

Previous versions of sIFR allowed users to enter "sWmode: 'transparent'" to avoid the common problem of Flash objects being overlayed on regular HTML objects on screen, no matter the z-index of either elements.

How do I replicate this behavior in sIFR 3.0?

Upvotes: 0

Views: 683

Answers (3)

Alex
Alex

Reputation: 1

The expressions will not be interpreted all the same way. E.g. in Chrome 10 wmode: 'transparent' will cause a black background behind the replaced text, while wmode: 'opaque' works like it should. Strange!

Upvotes: 0

Mark Wubben
Mark Wubben

Reputation: 3349

Indeed, you can use

wmode: 'transparent'

or

wmode: 'opaque'

But also

transparent: true

or

opaque: true

Whatever floats your boat :)

Do note that browsers usually have issues with transparent Flash movies, so usually specifying a background color is the better option.

Upvotes: 1

grapefrukt
grapefrukt

Reputation: 27045

I think you just need to add:

wmode: 'transparent'

in the object you send into sIFR.replace()

Upvotes: 2

Related Questions