Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   Spry hiding behind video?!? (http://www.dreamweaverclub.com/forum//showthread.php?t=42361)

wbuchina 01-04-2012 05:47 PM

Spry hiding behind video?!?
Hi. I have just embedded a youtube video into my site, but now the spry menu is 'hidden', for lack of a better word, behind the video.


Any idea how to remedy this problem?

Any help is much appreciated.


edbr 01-05-2012 12:09 AM

not when i checked its not

wbuchina 01-05-2012 02:37 AM

you're right! I checked it in firefox and safari and it works fine, I usually use chrome and in that, it is doing what I initially said. Any idea why that is? clearly an issue with that browser...anything I can do about it?

by the way, how is Bali? I used to live in Canggu!


gentleone 01-05-2012 02:27 PM

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:

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>
$(document).ready(function() {
    var opaque = '&wmode=opaque';
    $('#videowrapper iframe').attr('src', function(index, attr) {
        return attr + '?' + opaque;

All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com