PDA

View Full Version : Initializing a Gallery Wall for Youtube videos



Luis Aristizabal
05-17-2016, 02:04 PM
1) Script Title: YouTube Gallery Wall

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/youtube-gallery-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)


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


<script>

jQuery(function(){ // on DOM load
//syntax $(selector).youtubegallery()
$('#youtubelist').youtubegallery()
})

</script>

Thanks for your help
Luis

jscheuer1
05-17-2016, 03:20 PM
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.