[jQuery] Scroll to Internal page links with ScrollTo

2006-09-28 Thread neotoxic
I am looking to script something that will automatically link my internal page links using the http://interface.eyecon.ro/ ScrollTo behaviour. If the script doesn't load the normal browser behaviour should be preserved. I am using this so far, but is simply isn't working.. I can't seem to figure

Re: [jQuery] Scroll to Internal page links with ScrollTo

2006-09-28 Thread Matt Stith
Try$('[EMAIL PROTECTED]#]').each(function(i){*/ $(this).bind(click, function() {$(this).ScrollTo(3000, 'easeout'); //Changed this.href to thisreturn false; });});No since trying to scroll to an attribute of the link.On 9/28/06, neotoxic [EMAIL PROTECTED] wrote:I am looking to script

Re: [jQuery] Scroll to Internal page links with ScrollTo

2006-09-28 Thread Blair McKenzie
I think he was trying to use the href attribute to find the target element. Try this to find the target:$('a[name='+this.href.slice(this.href.indexOf(#)+1)+']')Blair On 9/29/06, Matt Stith [EMAIL PROTECTED] wrote: Try$('[EMAIL PROTECTED]#]').each(function(i){*/ $(this).bind(click, function() {