View Full Version : scroll to the top

04-09-2003, 02:47 PM
I can't figure out how to get this problem solved....

The page url is www.jmsconsult.com/peabody/showroomma.html

In the large image I have an area map (A), in the smaller image (B) is where the enlarged image will show when you click on an area in the image map (A). This works fine --- Not that I like the design, but the customer only wants me to change the following.

When a user clicks on an area in the image map (A) it will show the enlarged image in (B), I would like the item description to scroll to the top of the table in the small scrollable table. This way the user will not have to look through the table trying to find the description that correlates to the click imaged.

I hope I am explaining this well enough.

Any ideas or suggestions would be greatly appreciated.

Thanks a bunch!

04-11-2003, 04:38 AM
I think this is really a dhtml problem rather than css / html. Might be better if you posted in the javascript or dom forum. :)


04-11-2003, 01:44 PM
[edit:] :eek: non iframe heh, I should have looked first, I'm not sure about how to scroll in that .. possibly:

scrollFrame.scrollTo (0,10);

Not sure though.. I'll just bump you into the javascript forum coz they'll know about scrolling something like that.. I not good enough ;).

04-11-2003, 02:54 PM
thanks for the move to javascripting.:)

04-11-2003, 03:46 PM

- id from element You want to scroll, like <div id="mydiv"></div>
- place You want to scroll to