Drop Down Navigation Falls Behind YouTube Video

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
Line 10: Line 10:
  
 
'''Old code:'''
 
'''Old code:'''
<iframe width="467" height="380" <nowiki>src="http://www.youtube.com/embed/T6MhAwQ64c0</nowiki>" frameborder="0" allowfullscreen></iframe>
+
<iframe width="516" height="380" <nowiki>src="http://www.youtube.com/embed/T6MhAwQ64c0</nowiki>" frameborder="0" allowfullscreen></iframe>
  
 
'''New code:'''
 
'''New code:'''
<iframe width="467" height="380"  
+
<iframe width="516" height="380"  
 
<nowiki>src="http://www.youtube.com/embed/T6MhAwQ64c0</nowiki><span style="color:#FF0000">?wmode=opaque</span>" frameborder="0" allowfullscreen></iframe>
 
<nowiki>src="http://www.youtube.com/embed/T6MhAwQ64c0</nowiki><span style="color:#FF0000">?wmode=opaque</span>" frameborder="0" allowfullscreen></iframe>
  
If you are using Google Chrome & the new code isn't working, trying changing "opaque" to "transparent"
+
==YouTube's older embed code==
 +
There are two elements you need to add to your video code to override this issue.
 +
 
 +
# Add <param name="wmode" value="opaque"></param> directly after your opening "object" tag
 +
# Add wmode="opaque" within your embed tag
 +
 
 +
<object width="516" height="380">
 +
<param name="wmode" value="opaque"></param>
 +
<param name="movie" value="http://www.youtube.com/v/T6MhAwQ64c0&amp;hl=en_US&amp;fs=1?hd=1&amp;showinfo=0"></param>
 +
<param name="allowFullScreen" value="true"></param>
 +
<param name="allowscriptaccess" value="always"></param>
 +
<embed wmode="opaque" src="http://www.youtube.com/v/T6MhAwQ64c0&amp;hl=en_US&amp;fs=1?hd=1&amp;showinfo=0"
 +
type="application/x-shockwave-flash"
 +
allowscriptaccess="always"
 +
allowfullscreen="true"
 +
width="516"
 +
height="380"></embed>
 +
</object>

Revision as of 17:28, 16 September 2011

When using Drop Down Navigation, your drop down menus are overlapped by Flash elements, such as an embedded YouTube video in your Feature Slider.

This is because the default behavior for Flash always overlap any sort of HTML attempting to be layered on top of it. Fixing that so that drop down menus appear correctly above the flash requires an easy modification to the way flash videos are embedded on the website.

YouTube's iframe embed code

Add the following parameter to the URL:

?wmode=opaque

Old code: <iframe width="516" height="380" src="http://www.youtube.com/embed/T6MhAwQ64c0" frameborder="0" allowfullscreen></iframe>

New code: <iframe width="516" height="380" src="http://www.youtube.com/embed/T6MhAwQ64c0?wmode=opaque" frameborder="0" allowfullscreen></iframe>

YouTube's older embed code

There are two elements you need to add to your video code to override this issue.

  1. Add <param name="wmode" value="opaque"></param> directly after your opening "object" tag
  2. Add wmode="opaque" within your embed tag

<object width="516" height="380"> <param name="wmode" value="opaque"></param> <param name="movie" value="http://www.youtube.com/v/T6MhAwQ64c0&hl=en_US&fs=1?hd=1&showinfo=0"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed wmode="opaque" src="http://www.youtube.com/v/T6MhAwQ64c0&hl=en_US&fs=1?hd=1&showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="516" height="380"></embed> </object>