Smooth scroll error

I have a JScript error on line 61 which stops my anchor links from scrolling smoothly.

I need to know the solution to making this JScript work?

My site address where the error is at is: www.free1up.com/
Richard MorrisAsked:
Who is Participating?
 
StingRaYConnect With a Mentor Commented:
try change this line

location.pathname.replace(/^//,'') == this.pathname.replace(/^//,'')

to

location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
0
 
sjklein42Commented:
Try Firebug add-in to Firefox to help debug your javascript.  For starters, it found:

[03:58:38.676] syntax error @ http://www.free1up.com/:61
[03:58:38.683] missing ) after argument list @ http://www.free1up.com/:267
[03:58:38.686] animatedcollapse is not defined @ http://www.free1up.com/:411
[03:58:38.743] Unknown property 'wwwbackground-color'.  Declaration dropped. @ http://www.free1up.com/:514

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.