I had a popping up div that was under a Flash swf embed object… but i need it to be on top of the swf instead. so i found that a suggestion was to use wmode=“transparent” (say, if it is <embed>).
another suggestion says wmode=“transparent” takes too much CPU time, and using wmode=“opaque” solves the same problem.
is that true? I can’t find much documentation on wmode on the web… is it true that “opaque” will make the swf object behave like any other HTML elements, and then “transparent” will actually make any HTML element under the swf to show through? and if that’s the case, how come the white background of <body> did not show through?
the name is a bit strange as opaque usually means semi-transparent. thanks.
window mode, the default. will cover up any other HTML element.
opaque mode: the flash will be like any other HTML element, can be covered up or can cover up something else.
transparent mode: like opaque, but with the additional property that the transparent region of the flash content will show the HTML element that the flash is covering up.
as a result, many people use wmode=“transparent” to make other HTML element be able to cover up the flash and it is not needed. “opaque” is better because it is faster (when no transparent content need to show through).
the other way around won’t work either – if it was “opaque” and the onclick sets it to “window” or to “”. if i change it to change the width to 800 then it will take effect, but setting wmode won’t have effect. i wonder why? thanks.