Done!
http://kelvinluck.com/assets/jquery/jScrollPane/scrollToSpeed.html
The animation of the scrolling is very basic at the moment but it should
do the job... At some point in the future I will think about trying to
change the animation to use jQuery's animation function and the easing
plugin - I've set up a ticket to remind myself here:
http://jquery.com/plugins/node/357
Cheers,
Kelvin :)
Alexandre Plennevaux wrote:
Woooooonderful! Could you also make the scroll speed as an option?
-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kelvin Luck
Sent: jeudi 16 août 2007 12:41
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Scrolling a div area without scrolling the page?
Hi,
I'm not sure I understand you about the jQuery plugin version - it's already
a jquery plugin!
I've also just made the adjustment which allows you to pass a jQuery
selector to the scrollTo method and added another example at the bottom of
the page here:
http://kelvinluck.com/assets/jquery/jScrollPane/scrollTo.html
Cheers,
Kelvin :)
[EMAIL PROTECTED] wrote:
Hi,
Thank you for your reply -- this solution presents itself exactly what
I was looking for.
Can't wait to use the jquery plug-in version -- do you have any idea
when you might have that available?
Matthew
On Aug 14, 2:48 am, Kelvin Luck <[EMAIL PROTECTED]> wrote:
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
athttp://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
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.483 / Base de données virus: 269.11.19/953 - Date: 14/08/2007
17:19