Results 1 to 2 of 2

Thread: Initializing a Gallery Wall for Youtube videos

  1. #1
    Join Date
    May 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Initializing a Gallery Wall for Youtube videos

    1) Script Title: YouTube Gallery Wall

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...llery-wall.htm

    3) Describe problem:
    Initializing a Gallery Wall:
    Once the markup for a gallery wall has been defined, simply initialize it by calling the jQuery function: (How do I do this? Where to put the code? (In red)

    Code:
    $(galleryULref).youtubegallery()
    after the DOM has loaded, where galleryULref is a jQuery reference to the UL element containing the Youtube links, for example:

    Code:
    <script>
    
    jQuery(function(){ // on DOM load
    	//syntax $(selector).youtubegallery()
    	$('#youtubelist').youtubegallery()
    })
    
    </script>
    Thanks for your help
    Luis
    Last edited by jscheuer1; 05-17-2016 at 03:11 PM. Reason: format code

  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

    As indicated in Step 1 on the demo page you linked to (the "Insert the following code in the HEAD section of your page" part). Scroll the Step 1 code down and you will see it at the end of that section.

    Generally, it's best to just follow the step by step instructions which end just before the heading "More Information". Then once you get it working, only worry about the separate parts if you need/want to tweak something.
    - John
    ________________________

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

Similar Threads

  1. Make youtube videos play from certain time on website load
    By Tea in forum Looking for such a script or service
    Replies: 1
    Last Post: 03-28-2016, 04:26 PM
  2. Using thumbnails for playing multiple YouTube videos
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 4
    Last Post: 01-15-2015, 02:58 PM
  3. 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
  4. 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
  5. Replies: 5
    Last Post: 03-16-2007, 03:24 PM

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
  •