Results 1 to 3 of 3

Thread: Javascript hiding behind youtube vids

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    5

    Default Javascript hiding behind youtube vids

    I'm having a weird problem and hoping someone might have some insight, please

    I'm designing a site with a shopping cart (using E-Junkie as the cart) and it also has some YouTube vids.




    The shopping cart functions use Javascript. When I launch the site, the shopping cart window appears *under* my YouTube vids....which is kinda annoying

    I tried using the typical "bring to front" under Objects > Arrange Objects, but this apparently doesn't affect Javascripts or YouTube.

    Is there something I can do to make sure my shopping cart window is always at the front?

    Any help would be greatly appreciated! Thanks!
    Dan

  2. #2
    Senior Member gotFusion's Avatar
    Join Date
    Jan 2010
    Location
    www.gotHosting.biz
    Posts
    4,529

    Default

    Add this parameter tag to your list of flash embed tags

    Code:
    <param name="wmode" value="transparent">
    Everything will go over top of your videos using this.
    NetObjects Fusion Cloud Linux enabled Web Hosting, support + training starts at $14.95
    NetObjects Fusion web Hosting and support + ASP + PHP + ColdFusion + MySQL + MS SQL
    FREE NetObjects Fusion Support & training comes with all web hosting accounts
    NetObjects Fusion Web Hosting: http://www.gotHosting.biz

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    5

    Default

    Quote Originally Posted by gotFusion View Post
    Add this parameter tag to your list of flash embed tags

    Code:
    <param name="wmode" value="transparent">
    Everything will go over top of your videos using this.

    Awesome...thanks for responding so quickly.
    I read it and now realize that maybe this might not work with YouTube's new preferred method of embedding videos.

    For example, if I'm embedding this file, http://www.youtube.com/watch?v=LUcqIUSZv2Q

    I hit share on youtube and I'm told to use this script

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

    The old way says to use

    Code:
    <object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/LUcqIUSZv2Q?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/LUcqIUSZv2Q?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
    Until just now, I didn't realize there was an old way and a new (shorter) way to embed YouTube videos.
    Apparently this problem only happens with the new, shorter way....and I can't add those your suggestion using the newer way. Can you think of another way to do it or do you think I'm stuck using the older method?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •