combat2k
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;
fadearray[0].resetit();
fadearray[0].rotateimage()};
}
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,
Daniel.
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;
fadearray[0].resetit();
fadearray[0].rotateimage()};
}
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,
Daniel.