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

2007-12-05 Thread Flesler
@Maccer Indeed, the actual documentation is in the header of the source-code file. I didn't want to bore people (that won't download it) with documentation in the project page, or in the blog. The info that appears in those 2 places is sort of a quick summary of what is the plugin capable of. I as

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

2007-12-04 Thread Maccer
Thanks, this seems to work except when the same link is clicked again (but that's probably not Jquery's fault). Since I am not too familiar with how to access things using Javascript it was the following row that I couldn't get right: var target = location.hash && $(location.hash)[0]; You talk

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

2007-12-03 Thread Flesler
Hm.. second time I hear that, should I improve the documentation of jQuery.ScrollTo? So you need to scroll the page only once, each time it loads? Try this (I'll use ScrollTo but you can certainly avoid it if you want) $(function(){ var target = location.hash && $(location.hash)[0]; if( targ

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

2007-12-03 Thread Maccer
Hi! Maybe I should have mentioned that I tried the ScrollTo plugin before I started this topic, but I couldn't get it to work the way I needed. Some example code that shows how to make any of these plugins use the anchor from the current page URL would be very helpful. As I mentioned I can't sim

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

2007-12-03 Thread RU
Maccer - See - http://www.hypergurl.com/anchors.html It does not require jQuery On Dec 3, 6:30 am, Maccer <[EMAIL PROTECTED]> wrote: > Hi! > > I have a page with a imagemap with link areas. The hrefs look like this: > > href="?city=NameOfCity#memberlist" > > When one of those links are clicke

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

2007-12-03 Thread Andy Matthews
There are several plugins for this behavior: http://www.freewebs.com/flesler/jQuery.LocalScroll/ http://www.freewebs.com/flesler/jQuery.ScrollTo/ -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maccer Sent: Monday, December 03, 2007 8:30 AM To