Lightbox/ThickBox/GreyBox under Flash object
Posted by admin in tips
Are you using LightBox and Flash object on your site? The problem appears when you open LightBox and your Flash object appears above the pop up.
There is a simple solution to your problem!
Place the following code in your object parameters:
<param name=”wmode” value=”transparent”></param>
Also add this code to <embed> tag:
wmode=”transparent”
That’s it! Flash should now be hidden under LightBox with the rest of the page.



You da MAN! Thanks.
I found your solution. But what file do I need to edit? I am using the Wordpress flv embed plugin to add .flv movies in my posts. The plugin JW Flash player (flvplayer.swf).
FLV embed use JW’s .swf player and two PHP files(flv-embed.php and flv-sitemap.php) and a swfobject.js….
Hi Jasper,
huh, I never tried this plugin, but I would try to to modify the
swfobject.jsfile.I inserted the code above in this
swfobject.jsfile. Here is the link to it and just try overwritting your file with it. Backup the old file, since I haven’t tested the plugin!I hope that solved your problem. If not, let me know and I’ll take the time to test the plugin myself and try to find the right solution.
bby
Good Stuff….
Wasn’t looking for this but amazing what you can find online….
Nice site….
Hey I wasn’t exactly looking for your site, but cool….
thx!
Just what I needed! Thank you!
only_one_word = Great!
doesn’t work for me. I use a mp3 flash player as an . when i edit the param and set the , nothing changes.
thanks for help
don’t forget if u r embedding using dreamweaver to add this ‘high’,'wmode’ to the java script dreamweaver inserts in your page , Have Fun
where do i insert this code? do i insert it in the object parameter or the .js file? i entered the code into the video paramater but it didn’t work. so where do i insert this code?
Hi Guys,
I’m struggling to get it to work with indexhibit. I’ve inserted the first part but I don’t understand where to insert the “wmode=?transparent? part?
Where is the embed tag?
thanks
/Martin!
You put the code in object tags, it should look like this:
I had a problem with this solution, I did exactly what you asked but it didn’t work.
The problem was that I copy/pasted the code from the site and I got these quotes: ” . I had to change from this ” to normal quotes “.
It works now.
Great solution, exactly what i needed. Thanks so much
Anyone got it works in firefox browser? Is not working for me in firefox
Great tip! For people using SWFObject, just add this line to the code:
so.addParam(”wmode”, “transparent”);
Hope that helps some people out.
It’s great, but I still have this little problem: I’m using Milkbox, and when I insert the code, right, the flash object remains in the background, but for some reason, at the top of the page, it shows up a lot of crazy code like (// window.addEvent(’domready’,function(){ //autoplay example $(’autoPlayExample’).addEvent(’click’,function(e) and a lot more…. and it disapears when I get rid of the wmode = transparent tags…
Could anyboy explain to me WHY??? I would realy appreciate your help.
Never mind, thanx anyway, the problem was because of the Milkbox code, I was calling an XML file and I forgot to close one of the html tags.
Thanks!!!
U save mi lot of nerves. I whose very close to kick my computer:)
works - but you should make sure to use ” instead of ” in your code snippets.
took me a few minutes to figure why it wasn’t working.