Created
April 11, 2012 22:42
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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