javascript - Cycle2 Slideshow youtube -


i have question regards youtube cycle2 plugin.

here how code setup:

    data-cycle2-slides            ='>a'     data-cycle2-easing            ='".$easing."'      data-cycle2-fx                ='".$effect."'      data-cycle2-timeout           ='".$timeout."'      data-cycle2-pause-on-hover    ='".$pause."'      data-cycle2-speed             ='".$speed."'     data-cycle2-youtube            ='true'     data-cycle2-youtube-autostart  ='true'     data-cycle2-youtube-autostop   ='true' 

then how i'm calling videos:

    <div class="slideshow cycle2-slideshow">       <a href="http://www.youtube.com/v/boi9_jiee-y?hl=en_us&amp;version=3&amp;rel=0" >1</a>       <a href="http://www.youtube.com/v/srkloobqt0w?version=3&amp;hl=en_us&amp;rel=0" >2</a>       <a href="http://www.youtube.com/v/nldxk21zayw?hl=en_us&amp;version=3&amp;rel=0" >3</a>       <a href="http://www.youtube.com/v/kpovbprykts?hl=en_us&amp;version=3&amp;rel=0" >4</a>          </div> 

i based on documentation http://jquery.malsup.com/cycle2/demo/video.php. problem i'm having videos not showing. there reason why?

thank you.

couple of things;

cycle2-slideshow should cycle-slideshow (remove "2")

eg. <div class="slideshow cycle-slideshow">

the data attributes should start data-cycle-xxxx instead of data-cycle2-xxxx (remove "2")

eg. data-cycle-slides = '>a'

demo


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

django - CSRF verification failed. Request aborted. CSRF cookie not set -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -