4 / 4
Sep 2011

Hiya -- I'm having the exact same problem as mentioned here



http://www.e-junkie.com/bb/topic/5000



YouTube vids on my page are on top of my shopping cart window. While your solution does indeed work, it only seems to work with the old way YouTube wants you to embed videos. The newer, easier way to embed YouTube vids is using iframes. Using iframes, you get simple, easy-to-manage code looking like this



<iframe width="560" height="315" src="http://www.youtube.com/embed/bYs3BWi9iXg" frameborder="0" allowfullscreen></iframe>





Is there a way to use iframes and still let the shopping cart on top of the YouTube windows? This would be VERY helpful. Thanks!!

  • created

    Sep '11
  • last reply

    Sep '11
  • 3

    replies

  • 974

    views

  • 2

    users

  • 4

    links

E-junkieGuruThis help page explains how to embed YouTube videos so the cart can appear in front of them:

http://www.e-junkie.com/ej/tips.flash.youtube.htm





Thanks for the quick reply. It's appreciated! Unfortunately, it wasn't really my question. I actually referenced part of the solution you provided.



In the last year, YouTube has provided an easier method of embedding videos into webpages which doesn't involve the long string of code. I provided an example of this shortened text in my first post...



Thanks!

The basic issue is the same; you need to set the video's 'wmode' parameter to 'transparent', so the cart can "show through" the video. It appears adding ?wmode=transparent to the video URL should do the trick, like so:



<iframe width="560" height="315" src="http://www.youtube.com/embed/bYs3BWi9iXg?wmode=transparent" frameborder="0" allowfullscreen></iframe>



I'll update our help page on that accordingly.