Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Step Carousel Viewer - Stop fast forward/rewind motion

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Red face Step Carousel Viewer - Stop fast forward/rewind motion

    1) Script Title: Step Carousel Viewer v1.6.1

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

    3) Describe problem: I love this script, but I need to change 1 small thing, but I don't know how.

    I have a vertical menu with 5 items. If the user is clicking the links in order, I want the carousel to step 1 at a time. It does this already which is great.

    If, however, the user is on the first slide and decides to click on link 5, the carousel animates in a fast forward motion. Is there a way to remove the fast forward/rewind motion and have the slide load instantly instead?

    I still want the carousel to slide 1 at a time if the user is clicking the links in order.

    Thank you!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Are you calling stepTo() (versus stepBy()) in the instances where you're jumping more than one step, such as to link 5?
    DD Admin

  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hey!

    Here are my links:

    <ul>
    <li><a href="javascript:slider.stepTo('content_slider', 1)"><img src="images/navigation/1.gif" alt="1" /></a></li>
    <li><a href="javascript:slider.stepTo('content_slider', 2)"><img src="images/navigation/2.gif" alt="2" /></a></li>
    <li><a href="javascript:slider.stepTo('content_slider', 3)"><img src="images/navigation/3.gif" alt="3" /></a></li>
    <li><a href="javascript:slider.stepTo('content_slider', 4)"><img src="images/navigation/4.gif" alt="4" /></a></li>
    <li><a href="javascript:slider.stepTo('content_slider', 5)"><img src="images/navigation/5.gif" alt="5" /></a></li>
    </ul>

    Say the user is on link 5 and want to go back to link 4, they won't be able to if I use stepBy.

    Am I making sense?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It looks like you are exclusively using stepTo() then. Assuming so, try the below modified .js file, which runs the animation only when the current and target panel you're jumping to is next to each other. If it's more than 1 panel apart, it jumps straight to the target panel.
    DD Admin

  5. The Following User Says Thank You to ddadmin For This Useful Post:

    geektastic (03-28-2009)

  6. #5
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much for taking the time to sort this. This works perfectly. Is there anyway I can donate to you guys? You do such a good job

  7. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You're welcome. How about a donation to WWF?
    DD Admin

  8. #7
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I'm not sure how related this is, but there is a great site that donates 10 grains of rice to poor people for every question you answer correctly. In this way, you improve your skills in different subjects and make a difference in the world. Check it out: http://www.freerice.com/

  9. #8
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I'll see what I can do.

  10. #9
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Further help required

    Hello again! Now I need to remove the fastforward/rewind motion when the gallery is set to autostep.

    Any ideas? Same file as you uploaded but with the effect removed from autostep.

  11. #10
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Quote Originally Posted by geektastic View Post
    Hello again! Now I need to remove the fastforward/rewind motion when the gallery is set to autostep.

    Any ideas? Same file as you uploaded but with the effect removed from autostep.
    Untested, but inside the modified .js file, try finding the line in red below, and add to it the following two lines:

    Code:
    		var speed=Math.abs(config.currentpanel-pindex)<=1 ? config.panelbehavior.speed : 1
    		if (config.autostep && config.autostep.enable && config.autostep.status!="stopped")
    			speed=config.panelbehavior.speed
    DD Admin

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
  •