Yes. It’s 1:26 am, and I’m working on stuff. Really, I’d like to be in bed. Asleep. And I’d like to stay there for three days.

But alas, instead, if you are having problems with dropdown JavaScript menus appearing BEHIND a Flash object, try adding this to the parameters you’re passing to the Flash object:

wmode="transparent" 

Or if you’re using SWFObject, you can do something like this instead:

var so = new SWFObject("crappy.swf", "crappy_swf", "100%", "100%", "9", "#ffffff");
so.addParam("wmode", "transparent");
so.write("flash");

Maybe that will save you some headaches. It saved me some.

UPDATE

Apparently it might be better to use

wmode="opaque" 

Apparently it’s less CPU intensive, and it seems to do the same job (that’s how it worked for me, anyway). I believe the differences are as follows:

Opaque makes Flash behave like any other page element, allowing you to easily float content over it using JavaScript and DHTML.

Transparent makes the page background underneath the Flash video appear through any transparent areas of the Flash video.

Comments

There are 0 comments on this post. Post yours →

Post a comment

Required fields in bold.