Skip to content

Instantly share code, notes, and snippets.

@sessa
Created April 11, 2012 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sessa/2363254 to your computer and use it in GitHub Desktop.
Save sessa/2363254 to your computer and use it in GitHub Desktop.
Waits for flash file to load then applies wmode=transparency param - this is for externally embedded flash objects where you do not have access to the parameters.
jQuery(document).ready(function() {
function addWmodeTransparent() {
var intervalID;
intervalID = setInterval(checkObject, 500);
function checkObject()
{
if($('object').length){
$('object').append('<param name="wmode" value="transparent">');
clearInterval(intervalID);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment