Results 1 to 2 of 2

Thread: Stop/Prev/Next in auto mode

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

    Default Stop/Prev/Next in auto mode

    1) Script Title: Ultimate Fade-in slideshow (v2.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tm#displaymode

    3) Describe problem: Option to have a stop/start button ("prev/next") on auto slide show. Also, is it possible to have the same controls as the manual demo in auto mode with a stop/stat button.

    Greetings,
    I was curious if it is possible to have the slide show with a stop/start button and manual controls while having the slide show fully automatic as well.
    Plus, are there options for different transitions.
    Thanks,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I've worked out a way to have stop/start buttons in any mode. For Stop:

    Code:
    <input type="button" onclick="mygallery.navigate(mygallery.setting.imgindex);" value="Stop">
    where mygallery is the name of the variable used to define the instance, ex (from the demo page):

    Code:
    var mygallery=new fadeSlideShow({
    	wrapperid: "fades . . .
    For Start:

    Code:
    <input type="button" onclick="var dm=mygallery.setting.displaymode;if(dm.type!=='auto'){dm.type='auto';mygallery.showslide('next');}" value="Go">
    As for next/previous, it is undocumented, but if you give your gallery definition a togglerid, you may supply it a toggler element as described for the manual slide show, even if its mode is set to auto. The next and the previous buttons will perform as with the manual show - the only caveat is that they will throw the show into manual (stopped) mode when activated. But if you have a Go (start) button, users can activate auto mode again if they so choose.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Xdj (10-07-2009)

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
  •