Created
August 8, 2014 09:19
-
-
Save gerasimua/16a7004407e5220eccda to your computer and use it in GitHub Desktop.
Z-index of YouTube video in IE
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
//Fix z-index youtube video embedding | |
$('iframe').each(function(){ | |
var url = $(this).attr("src"); | |
if(url){ | |
var separator = (url.indexOf('?') > 0) ? '&' : '?'; | |
$(this).attr('src', url + separator + 'wmode=transparent'); | |
$(this).attr("wmode", 'Opaque'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment