Reputation: 1295
I am new to use jquery. I need to scroll to the place where the menu indicates as in this site http://www.newworkmag.com/issue1.html. If I am not mistaken then I can use scrollTo. But I could not find how to use this. Hope to get answer.
Thank you.
Upvotes: 0
Views: 299
Reputation: 51538
This can be achieved using the jQuery scrollTo plug-in which allows you to scroll the entire window as in your example.
EDIT: Here's a similar stackoverflow question
Upvotes: 2
Reputation: 125604
if the purpose is : Scroll Follow is a simple jQuery plugin that enables a DOM object to follow the page as the user scrolls. the link is :
http://kitchen.net-perspective.com/open-source/scroll-follow/
or
http://code.google.com/p/jquery-scroll-follow/
Upvotes: 0
Reputation: 41232
You can use scrollLeft( val) for that. Here you have nice documentation.
PS. Also there is no actual need to use jQuery for that you can use scrollBy
window.scrollBy( x, y);
Upvotes: 1