[jQuery] Smoothly scroll to the anchor given in the URL

[jQuery] Smoothly scroll to the anchor given in the URL


Hi!
I have a page with a imagemap with link areas. The hrefs look like this:
href="<?php echo $_SERVER['PHP_SELF'] ?>?city=NameOfCity#memberlist"
When one of those links are clicked, I would like the page to smoothly
scroll down to the anchor #memberlist. However, the page is reloaded and
processed by PHP when a link is clicked, so it seems that it is not possible
to use, say, a jquery plugin that scrolls to anchors on the same page - at
least not without modifications.
I think that one solution would be to read the anchor name from the page URL
and then somehow smoothly scroll down to that anchor. But I can't get it to
work. Can anyone suggest how I can accomplish this?
--
View this message in context: http://www.nabble.com/Smoothly-scroll-to-the-anchor-given-in-the-URL-tf4936899s27240.html#a14131044
Sent from the jQuery General Discussion mailing list archive at Nabble.com.