Results 1 to 3 of 3

Thread: embedding youtube videos

  1. #1
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default embedding youtube videos

    I'm using The onChange event handler/ Embedding YouTube videos.
    According to the description, when you choose the second video, the first video stops playing. The header stuff was entered exactly as given.
    Below is my body code. Thanks for any help.

    Code:
      <div id="p-select" class="glidecontenttoggler">
        <a href="#" class="prev">Prev</a>
        <a href="#" class="toc">Forehand</a> 
        <a href="#" class="toc">Serve</a> 
        <a href="#" class="toc">Federer</a> 
        <a href="#" class="toc">Volley</a>
        <a href="#" class="next">Next</a><br /><br />
      </div>
    
      <div id="tennisvideos" class="glidecontentwrapper">
        <div class="glidecontent">
          <iframe width="750" height="480" src="https://www.youtube.com/embed/wa-3GStYh_I?enablejsapi=1" frameborder="0" allowfullscreen>
      		</iframe>
        </div>
        <div class="glidecontent">
          <iframe width="750" height="480" src="https://www.youtube.com/embed/CXgfNBnetzQ?enablejsapi=1" frameborder="0" allowfullscreen>
    		  </iframe>
        </div>
        <div class="glidecontent">
          <iframe width="750" height="480" src="https://www.youtube.com/embed/yj9BPGQs38M?enablejsapi=1" frameborder="0" allowfullscreen>
          </iframe>    
        </div>
        <div class="glidecontent">
          <iframe width="750" height="480" src="https://www.youtube.com/embed/BJfDewZQrUk?enablejsapi=1" frameborder="0" allowfullscreen>
          </iframe>
        </div>
      </div>
    Last edited by mcolton; 02-17-2017 at 12:06 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post a link to the demo page of the script here on Dynamic Drive as well as a link to your page where you're having this problem.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Weird. It didn't work while I was testing it but when I put it online, It worked correctly.
    Thanks for your help

Similar Threads

  1. Replies: 0
    Last Post: 07-07-2015, 10:06 AM
  2. Playing 'watch_popup videos' using the YouTube Api for embedding videos
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 1
    Last Post: 06-21-2013, 03:18 PM
  3. Loading YouTube videos using the most recent YouTube embed code
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 11
    Last Post: 05-28-2012, 11:04 PM
  4. Replies: 5
    Last Post: 03-16-2007, 03:24 PM
  5. Replies: 0
    Last Post: 11-27-2006, 01:37 AM

Bookmarks

Posting Permissions

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