PDA

View Full Version : Hot spots & hyperlinks - scroll problem


peacock
05-21-2007, 11:03 AM
Hi guys,

A quick question. On the following webpage http://www.theonebigad.com/company_list.html all my links open a popup link to a seperate webage.

The same is true on this page (with each banner being the link) http://www.theonebigad.com/banner_list.html however when you click any of these banners it automatically scrolls the page back to the top so if people want to click on another banner after closing the window which pops up they have to scroll back down to where they were.

Is this a problem with the hotspots (which are over each banner) or is this a problem with my webpage?

Any help would be greatly appreciated.

Rich

domedia
05-21-2007, 01:40 PM
You have invalid url's for all your links <a href="#"> is not going to work. Browser is looking for the url, can't find it and goes to the top of the page. I wrote a little piece on this some time ago that tells you have to use a valid url in the HREF attribute, while using the link for a popup at the same time:
http://www.domedia.org/oveklykken/javascript-pop-up.php

peacock
05-23-2007, 11:00 AM
Thanks very much:) !!!

domedia
05-23-2007, 06:56 PM
anytime peacock! :)