Hi,

I'm very new to both jQuery and Javascript, but I love what it can do so
far.  I'd like to be able to create a plugin that enables smooth scrolling
when you click on an internal anchor link on a page.  It would be beneficial
to users as it provides feedback that you are not going to a different page,
but somewhere else on the page.

I've found a snippet of code that implies it should do the trick, but I
can't get it to work successfully.  If anyone could start pointing me in the
right direction I would greatly appreciate it.

Many thanks,

Luke

Code snippet:
----------------------------------------------
$('[EMAIL PROTECTED]"#"]').each(function(i){
$(this).click(function(){
$(this.href).ScrollTo(2000);
return false;
});
}); 
----------------------------------------------
http://techfoolery.com/archives/2006/08/11/2021/?PHPSESSID=784f3aa2dd287a7ce685852ff5d7ff9a#comment-4
-- 
View this message in context: 
http://www.nabble.com/Smooth-page-scrolling-between-internal-anchors-tf2939313.html#a8217807
Sent from the jQuery Plugins mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to