I tried anchors. For some reason the page doesn't "jump" to the correct location, although the url get modified accordingly (it is a
JSP page, don't know if that has anything to do with it).
ie:
www.page.com#link1 (but the page doesn't actually shift down to link1).
I will try playing with your script a bit. I want a table of contents that I can put through out the page. I should be able to call your script from a <a> tag using the onClick method. If I give another <a> an id on the page I think you script should be able to get the position if I pass in the id of the element I can to scroll too.
I will try this all out in a little bit.
Luke