Comments on: Stop flash from covering HTML content https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/ building stuff on the web with Josh Fraser Thu, 12 Jul 2012 10:20:05 +0000 hourly 1 By: boiii https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-4721 Thu, 12 Jul 2012 10:20:05 +0000 https://onlineaspect.com/?p=408#comment-4721 Thanks for the excellent blog, saved my butt!!!

]]>
By: Filipe Tavares https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-4660 Sun, 22 Apr 2012 20:20:31 +0000 https://onlineaspect.com/?p=408#comment-4660 With prototypeJS, I'd do:

if ( Prototype.Browser.IE ) {
$$('object').each(function(s) {
if ( s.down('param[name="wmode"]') ) {
s.down('param[name="wmode"]').writeAttribute('value', 'transparent');
} else {
var newObject = s.clone();
s.childElements().each(function(j) {
newObject.insert({bottom: j});
});
var newParam = new Element('param', { 'name': 'wmode', 'value': 'transparent' });
newObject.insert({bottom: newParam});
s.up().replaceChild(newObject, s);
}
});
} else {
$$('embed').each(function(s) {
var newEmbed;
newEmbed = s.clone();
newEmbed.writeAttribute('wmode','transparent');
s.up().replaceChild(newEmbed,s);
});
}

]]>
By: krishna https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3191 Fri, 26 Aug 2011 11:38:36 +0000 https://onlineaspect.com/?p=408#comment-3191 Thank you so much. You saved my day.

]]>
By: robserious https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3105 Mon, 06 Jun 2011 14:05:28 +0000 https://onlineaspect.com/?p=408#comment-3105 I have a menu that is being killed by an ad so need this fix, however, I don't know if rewriting the HTML may grab another ad ad or re-embed it and bugger up the impression counts etc, before I run with this, anyone had any experience?

]]>
By: Josh Fraser https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3082 Tue, 10 May 2011 20:32:42 +0000 https://onlineaspect.com/?p=408#comment-3082 In reply to Bryan Casler.

Use the jQuery version if you've already taken the hit of loading it in. It already handles checks to see if jQuery is defined before loading it in.

]]>
By: Bryan Casler https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3081 Tue, 10 May 2011 20:24:48 +0000 https://onlineaspect.com/?p=408#comment-3081 In reply to Josh Fraser.

I was wondering if there was a benefit to using the jQuery version vs the JS version. I'm currently running a drupal site and I could support either or.

Side question, if you think I should use the jQuery version. Drupal already has jQuery.js in it, so how can I prevent the jquery version from being downloaded again? Do I just remove the "LJQ" function?

]]>
By: Josh Fraser https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3040 Tue, 29 Mar 2011 05:28:44 +0000 https://onlineaspect.com/?p=408#comment-3040 In reply to @matthewmceachen.

Awesome! Always love to hear stories from people who use my code. Love what you're doing with AdGrok. We should chat about getting you set up with Torbit too. 🙂

]]>
By: @matthewmceachen https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3039 Tue, 29 Mar 2011 02:06:35 +0000 https://onlineaspect.com/?p=408#comment-3039 Woot! I found your solution an hour ago, and it's now a proud part of AdGrok's GrokBar… Thanks!

]]>
By: jrt324 https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-3032 Fri, 18 Mar 2011 10:13:19 +0000 https://onlineaspect.com/?p=408#comment-3032 it does't working in IE 6

]]>
By: henry cullen https://onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/comment-page-1/#comment-1281 Fri, 29 Oct 2010 11:29:56 +0000 https://onlineaspect.com/?p=408#comment-1281 excellent! thanks so much, that was driving me nuts!

]]>