Results 1 to 2 of 2

Thread: Javascript start/stop buttons in UltimateSlide(1.5)

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript start/stop buttons in UltimateSlide(1.5)

    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.
    Last edited by Snookerman; 08-06-2009 at 01:32 PM.

  2. #2
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Damn, I'm smart. I've done it myself.

    Thanks for reading, guys.

    /closed

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •