Created
February 3, 2012 17:06
-
-
Save erikig/1731169 to your computer and use it in GitHub Desktop.
jquery.wmodeFix.js - Fix wMode for embedded YouTube iFrames
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
/** | |
* Fix wMode for embedded YouTube iFrames | |
**/ | |
function wmodeFix(){ | |
$('iframe[src*="youtube"]').each(function() { | |
var iframe_src = $(this).attr('src') + '?wmode=transparent'; | |
$(this).attr("src",iframe_src); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment