3

IE seems to ignore elements with higher z-indexes, when they overlap an iframe.

Have read various other posts that suggest adding a combination of &wmode=transparent to the iframe src, and wmode="opaque" attribute to the iframe itself; though IE doesn't seem to like either of these.

<iframe title="YouTube video player" class="media-youtube-html5" type="text/html" width="500" height="300" src="http://www.youtube.com/v/9W82sMSMJJg?hd=1&wmode=transparent" wmode="opaque" frameborder="0"></iframe>

http://jsfiddle.net/7fd8Y/

Any help would be much appreciated.

Sj.
  • 1,402
  • 1
  • 12
  • 9

2 Answers2

0

I have updated your code. Now working fine in IE, just added the wmode parameter through javascript jsfiddle

$('iframe').each(function(){
    var url = $(this).attr("src");
    $(this).attr("src",url+"?wmode=transparent");
});

Refer This post

Community
  • 1
  • 1
karan3112
  • 1,867
  • 14
  • 20
0

Your link is wrong, the default link word should be embed,

<iframe src="http://www.youtube.com/embed/9W82sMSMJJg" frameborder="0"></iframe>

but not just v (v-link ignores z-index):

<iframe src="http://www.youtube.com/v/9W82sMSMJJg" frameborder="0"></iframe>

Here is an example for IE: http://jsfiddle.net/7fd8Y/21/

Anton Lyhin
  • 1,925
  • 2
  • 28
  • 34