View Single Post
Old 01-05-2012, 02:27 PM   #4
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

For chrome you'll need to add ?&wmode=opaque to the end of the youtube url. So with your youtube video you'll get this:
HTML Code:
http://www.youtube.com/embed/FsOlILl2jlc?&wmode=opaque
If you have users that insert youtube vids through a CMS you can use javascript or a javascript framework such as jQuery to add it by manipulating the DOM.
HTML Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(document).ready(function() {
    var opaque = '&wmode=opaque';
    $('#videowrapper iframe').attr('src', function(index, attr) {
        return attr + '?' + opaque;
    });
});
</script>
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote