views:

304

answers:

2

I have a page which displays dynamic flash content from issuu.com. I need to add wmode="transparent" because otherwise navigation menu shows under flash. Is there a short way to do this with jQuery or simple java-script?

I don't want to change embed code every time a flash is added.

+1  A: 

You could use this Jquery code:

$("object[type='application/x-shockwave-flash']").append('<param name="wMode" value="transparent"/>');
Mannaz
+1  A: 

Last time I checked, altering wmode by JS didn't work. Once the Flash object has been created, changing its wmode value has no real effect.

You would need to do this from either the backend or if that's not a possibility, in JS BUT before writing the object.

HTH

Zárate