tags:

views:

117

answers:

3

Hello, 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.

+1  A: 

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);
Artem Barger
A: 

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/

Haim Evgi
+2  A: 

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

Jose Basilio
I would also recommend scrollTo plug-in for jquery.there is a demo: http://demos.flesler.com/jquery/scrollTo/I think demo is as much worth as plug-in docs.
SashaN
Thank you Jose and SashaN. I got the solution.