views:

243

answers:

1

I have a large threaded comment list. When a person replies the author gets an email notification.

I'd like the email to have a link to the reply something like: http://site.com/feedback/#reply-22

the page would have something like wow nice comment

With JQUERY how can I detec the anchor, slowly scroll to the location on page load, and then once it's scrolled to the location highlight the DIV, not highlighting until the scroll is completed?

Thanks

+1  A: 

I found this, which might be useful for you. It's a jQuery plugin that allows you to slowly scroll to locations based on just about anything you need.

Here is the link to the project download page.

Use the onAfter:function() {} ability to highlight the comment once the scroll is completed.

Aaron