views:

54

answers:

2

I have big element at the top of the webpage that sides down with jQuery when a button is clicked. However, if the first post on the blog is a flash video, it shows up on top of the menu. Z-index doesn't help in this instance. Any help would be greatly appreciated.Thanks.

+1  A: 

when you embed the flash set the parameter "wmode=transparent"

Matt
Yes, I read that that works. But how can I make it so that whenever a flash video is added to the blog, it automatically adds wmode=”transparent” . As I don't necessarily expect the end user to do this.
Deshiknaves
A: 
$('embed').attr('wmode', 'transparent')
bobthabuilda
I thought that that would work too, but didn't work. I found this to work:$('embed').attr('wmode','opaque').wrap('<div>');But its a little inefficient as it loads and then loads a second time when its redrawn.
Deshiknaves
Alas, thats not working in IE either...
Deshiknaves
Or firefox, only chrome
Deshiknaves
After that, I have been successful with FF and Chrome with this code. But can't seem to get it to work with IE.$(window).load(function(){ $('embed').attr('wmode','opaque'); $('object').append("<param name='wmode' value='opaque'>").wrap('<div>'); });
Deshiknaves