smooth scrolling to anchor (#)

Soldato
Joined
19 Oct 2002
Posts
3,480
Hi guys,

i was wondering if anyone knows the JS to make a windows scroll smoothly to an anchor destination?

i thought window.ScrollTo(x,y) was smooth but it just jumps...

the effect i'm after is used here http://jquery.com/demo/thickbox/ - click on one of the links at the top... funky effect i just want to get some minimal slick code to do it... could anyone give me a leg up?
 
marc2003 said:
download it and look at the source? but what's the point of writing your own? the whole point of that is so you can implement it on your own site with minimum effort. :)
that is just an effect on the page, it is not the topic of the site (thickbox) - i looked at the code but there was loads of javascript and i'm not good enough at it to decipher which bits i need...
 
Back
Top Bottom