View Full Version : Lightbox and jscroller problem

01-26-2009, 04:01 PM
Hi Guys,

I've been making a 'quick' portfolio site and have decided to use some javascript.

Two issues I'm having is:

When I use lightbox and click to view the larger image and close it, the page scrolls to the top - this must be because I'm using jscroller as well but I can't see why as the mark up seems ok.

The second issue is with jscroller. I have "Next" and "Prev" links next to images as shortcuts. This works fine until the 2nd last image when clicking "Next" the page goes up instead of down and again, I'm sure the mark up is correct. When I went to my parents house at the weekend it worked find there, maybe its resolution related?

Would someone be able to have a look at this with me? I don't want to paste the link to the site just yet if I can help it but if someone would be kind enough to help I can private message the link if that's OK?

Thanks in advance peeps I really hope someone can help! :)

01-27-2009, 04:49 PM
Right the sites a bit more tidy now so I'll post the link!


The issues I'm having is

1. When you click on "Next" on hhe "Mountain Biking Scotland" image the page should scroll down to the next image but it scrolls up!

2. When you click "View larger image" the lightbox works but when you close the image the page scrolls up to the top.

The site isn't finished and isn't bug tested but should display fine in Firefox and also reasonable in Internet Explorer / Safari but the mark up should be clean!

Your help will be greatly appreciated! :)