View Full Version : Resolved Javascript start/stop buttons in UltimateSlide(1.5)

08-06-2009, 08:57 AM
Hello, guys!

I've a question regarding DD UltimateSlideshow.

I've added a button for stopping the slide and a button for (re)starting the slide.

Anyway, I've added the following code:

onStopClick :

play = 0; //play is a JS variable used below; default value in slide.js is 1

onStartClick :

if (play == 0) {
play = 1;

the play variable is used in rotateimage() function from slide.js testing :
if (play==0) return; //after caching the 'this' object :-)

Anyway, i'm getting one buggy effect: after quick clicking on start/stop more than 2-3-4 times, the slide is changing too quick the images, and the CPU is running almost full load.

Any ideas how to make the slide working propertly with stop/start buttons?

Thanks in advance,


08-06-2009, 12:31 PM
Damn, I'm smart. I've done it myself.

Thanks for reading, guys.