Posted By

Jamie on 07/02/10


Tagged

reset last slide reload slidedeck autoplay


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

mchadwick


SlideDeck Auto Play With Reload Function


 / Published in: JavaScript
 

URL: http://www.slidedeck.com/usage-documentation/

  1. <script type="text/javascript">
  2. var mySlideDeck = $('.slidedeck');
  3. var interval = 1000;
  4. var endDelay = 2000;
  5. mySlideDeck.slidedeck({
  6. autoPlay: true, // enable autoPlay
  7. autoPlayInterval: interval, // delay before advancing
  8. complete: function(){
  9. if(mySlideDeck.slidedeck().current == mySlideDeck.find('dt').length){
  10. setTimeout(function(){
  11. mySlideDeck.slidedeck().goTo(1);
  12. }, endDelay); // Delay before going back to Slide 1
  13. }
  14. }
  15. }).vertical();
  16. </script>

Report this snippet  

You need to login to post a comment.