omg
omg

Reputation: 140102

scroll bar problem

how to move scroll bar by javascript ,

so that the top coordinate of visible area is y px from top coordinate of entire page?

Upvotes: 0

Views: 261

Answers (2)

Sean Hanley
Sean Hanley

Reputation: 5727

See the window.scrollTo and window.scrollBy methods.

If you need more flexibility and power than that you might try Flipper's suggestion and give the jQuery plugin a whirl.

Upvotes: 3

Flipper
Flipper

Reputation:

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

Upvotes: 0

Related Questions