Results 1 to 8 of 8

Thread: Step Carousel - How can I stop it?

  1. #1
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Step Carousel - How can I stop it?

    1) Script Title:
    Step Carousel Viewer

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem:
    Hello people,

    I've got a little question about the Step Carousel Viewer. I integrated it into a homepage, I enabled autostep and disabled defaultbuttons.
    Is there a way to stop the scrolling with a function call? I don't want to enable the defaultbuttons. If I use stepto(); it goes to next step, but the autostep will not be disabled.

    Another thing: Is it possible to run the Script in the NoConflict Mode of jQuery?

    Thanks
    Metty

  2. #2
    Join Date
    Aug 2004
    Posts
    9,876
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    To stop the auto stepping of the Carousel dynamically, you can use a function such as:

    Code:
    <script type="text/javascript">
    
    function stopautostep(carouselid){
    	var config=stepcarousel.configholder[carouselid]
    	clearTimeout(config.steptimer)
    	clearTimeout(config.resumeautostep)
    	config.autostep.status="stopped"
    }
    
    </script>
    Then, a link to stop the Carousel with main ID "mygallery" would look like this:

    Code:
    <a href="javascript:stopautostep('mygallery')">Step auto stepping</a>
    BTW, there was a bug in the script that prevented auto stepping from being canceled when you called stepBy() or stepTo() dynamically. They have now been fixed in v1.6.1: http://www.dynamicdrive.com/dynamici...epcarousel.htm (just update the .js file).
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You mean, if I just update the .js file i can stop autostepping by calling stepBy(); ?

  4. #4
    Join Date
    Aug 2004
    Posts
    9,876
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Quote Originally Posted by metty View Post
    You mean, if I just update the .js file i can stop autostepping by calling stepBy(); ?
    Yep.
    DD Admin

  5. #5
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks!
    Is there also a way to start it again?

  6. #6
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    *push*

    Sorry, but, if I stopped the carousel, can I start the autostep again?

  7. #7
    Join Date
    Aug 2004
    Posts
    9,876
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Untested, but you can try and revive the Carousel again once it's stopped with a function like:

    Code:
    function startautostep(carouselid){
    	var config=stepcarousel.configholder[carouselid]
    	clearTimeout(config.steptimer)
    	config.steptimer=setTimeout(function(){stepcarousel.autorotate(config.galleryid)}, config.autostep.pause)
    }
    Usage wise it's the same as its counterpart above.
    }
    DD Admin

  8. #8
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmmm, this doesn't work...
    The function is called and executed, but nothing happened.

    This could be a feature in the next version.

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
  •