View Full Version : StepCarousel jumps to the top of the page on reload/selection

04-17-2012, 05:12 PM
1) Script Title: StepCarousel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.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:


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.

04-18-2012, 08:54 PM
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:


It exists inside all of your carousel trigger links. Try removing them.