/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// START ROTATE CODE var timer; var donext = function (x){ // "Next Slide" code goes here } var dotimer = function (){ if(timer != null) { clearInterval(timer); } timer = setInterval(function() { donext(); }, 6000); // Change the time in between rotations here (in milliseconds) } dotimer();