Scrolling problem

how to move scrollbar in javascript,

so the top coordinate of the viewable area is y px from the top coordinate of the whole page?

0


a source to share


2 answers


See window.scrollTo

and window.scrollBy

.



If you need more flexibility and power, you can try Flipper and give the jQuery plugin a whirlwind.

+3


a source


If you don't mind the overhead, use a jQuery library with the ScrollTo plugin. A quick demo can be found here: http://demos.flesler.com/jquery/scrollTo/



0


a source







All Articles