/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> var mySlideDeck = $('.slidedeck'); var interval = 1000; var endDelay = 2000; mySlideDeck.slidedeck({ autoPlay: true, // enable autoPlay autoPlayInterval: interval, // delay before advancing complete: function(){ if(mySlideDeck.slidedeck().current == mySlideDeck.find('dt').length){ setTimeout(function(){ mySlideDeck.slidedeck().goTo(1); }, endDelay); // Delay before going back to Slide 1 } } }).vertical(); </script>
URL: http://www.slidedeck.com/usage-documentation/