Return to Snippet

Revision: 28144
at July 2, 2010 06:32 by Jamie


Updated Code
<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>

Revision: 28143
at July 2, 2010 03:07 by Jamie


Initial Code
<script type="text/javascript">
	var mySlideDeck = $('.slidedeck');
	mySlideDeck.slidedeck({
		autoPlay: true, // enable autoPlay
		autoPlayInterval: 1000, // delay before advancing
		complete: function(){
			if(mySlideDeck.slidedeck().current == mySlideDeck.find('dt').length){
				setTimeout(function(){
					mySlideDeck.slidedeck().goTo(1);
				}, 2000); // Delay before going back to Slide 1
			}
		}
	}).vertical();
</script>

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

Initial Description

                                

Initial Title
SlideDeck Auto Play With Reload Function

Initial Tags

                                

Initial Language
JavaScript