Hi,

You can do this if you are using my jScrollPane and it's scrollTo method:

http://kelvinluck.com/assets/jquery/jScrollPane/scrollTo.html

I'm just about to make an improvement which will allow you to pass in a jQuery selector for the object you want to scroll to as well as a pixel position - keep an eye on the following ticket to know when it's been added:

http://jquery.com/plugins/node/348

Hope that helps,

Kelvin :)

[EMAIL PROTECTED] wrote:
Hi,

I don't know if jquery will be able to address this but I thought I
would try anyway.

Is there a way to scroll a div area (which has an overflow:auto) to an
anchor point within the div without scrolling the page (i.e., the page
should remain stationary)?  In other words, is there a way to use
jquery to animate the div when an anchor tag is clicked?

I've coded a basic html example at http://matthewmoore.info/jquery/example.html.
You'll see the page scroll when you click on a letter at the top of
the div.

Any ideas?

Thanks in advance,
Matthew

Reply via email to