Posted By

phiqle on 02/10/12


Tagged

iframe transparent YouTube


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrockSamsom


Make all YouTube videos display underneath content with higher z-index layers


 / Published in: jQuery
 

Make all YouTube videos display underneath content with higher z-index layers.

  1. var youTubeIframe = CWjQuery('iframe');
  2.  
  3. youTubeIframe.each(function(){
  4.  
  5. var url = CWjQuery(this).attr('src');
  6.  
  7. CWjQuery(this).attr('src',url+'?wmode=transparent');
  8. });

Report this snippet  

You need to login to post a comment.