Results 1 to 2 of 2

Thread: StepCarousel jumps to the top of the page on reload/selection

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default StepCarousel jumps to the top of the page on reload/selection

    1) Script Title: StepCarousel

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

    3) Describe problem: I don't know much about the StepCarousel and I've inherited it from a predecessor who set it up about 8 months ago so sorry if these things are pretty obvious.

    When making a selection, the script reloads the page(?) and then jumps to the top. It functions correctly other than this and when selecting new items it will load them. The problem is that the location of the carousel on the page is below the fold so it completely disappears when making a selection.

    How to I get it to stop jumping to the top of the page when a user selects a new item?

    From looking at your demo page, it appears our carousel is set up most like the "Push/Pull". We're changing slides based on an alpha-selection. The site isn't live right now but we do have the exact same thing at:

    https://www.nextgmobile.com/international.html

    I just moved that code to the new site. You can't see it happening here because there is nothing above the carousel to make it jump to the top of the page, so the example isn't going to be that great I don't think. I can try posting a test page if we want.

    There is a lot of bad HTML there so I've had the honor of going through and cleaning it up so that might be the cause somewhere.

    Thanks for any help of insight.
    Last edited by jscheuer1; 04-17-2012 at 07:23 PM. Reason: Format

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

    Default

    Looking at your page, it looks like the previous webmaster explicitly wanted each link when clicked on to scroll the page to the top (aside from calling up a particular slide within Carousel viewer). The code below inside your page is what's causing the jump to top action:

    Code:
    %20self.scrollTo(0,%200)
    It exists inside all of your carousel trigger links. Try removing them.
    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
  •