Blog

SlideDeck Auto Play With Reload Function

On July 12, 20100 Comments
<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>

Comments are closed.