Skip to content

Instantly share code, notes, and snippets.

@gerasimua
Created August 8, 2014 09:19
Show Gist options
  • Save gerasimua/16a7004407e5220eccda to your computer and use it in GitHub Desktop.
Save gerasimua/16a7004407e5220eccda to your computer and use it in GitHub Desktop.
Z-index of YouTube video in IE
//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