So has anyone actually got a working example of this so I can see what I'm
doing wrong? Because it doesn't work for me.
Karl Swedberg-2 wrote:
>
> On Feb 19, 2007, at 10:46 AM, Klaus Hartl wrote:
>
>> hcabbos schrieb:
>>> Hey Klaus. Do you think you could post the new code that includes
>>> everyone's
>>> final recommendations?
>>
>> I think that is already the code I posted, I took Sam's improvements
>> into account already... Karl?
>>
>>
>> -- Klaus
>
> Yep, that was it. :)
>
> Here it is once more for good measure:
>
>> $('[EMAIL PROTECTED]"#"]').click(function() {
>> if (location.pathname == this.pathname && location.host ==
>> this.host) {
>> var target = $(this.hash);
>> target = target.size() && target || $("[EMAIL PROTECTED]" +
>> this.hash.slice(1) +']');
>>
>> if (target.size()) {
>> target.ScrollTo(400);
>> return false;
>> }
>> });
>
>
> --Karl
> _________________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/Smooth-Scrolling-for-same-page-links-tf3245806.html#a9068885
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/