Created
December 26, 2013 15:29
-
-
Save hsquareweb/8135029 to your computer and use it in GitHub Desktop.
Fixing z-index for iframes (changing wmode)
This file contains hidden or 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
//Fixing z-index problem for iframes | |
$('iframe').each(function(){ | |
var url = $(this).attr("src"); | |
var char = "?"; | |
if(url.indexOf("?") != -1){ | |
var char = "&"; | |
} | |
$(this).attr("src",url+char+"wmode=transparent"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment