Current page highlight

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
lorenjustins
Beginner
Beginner
Posts: 3
Joined: Thu Jul 17, 2003 6:48 am

Current page highlight

Post by lorenjustins »

I have converted the menu system to an ASP script and it works beautifully, except the current page highlighting does not work at all.

I am not completely sure if this is because all the js files are in different places or whatever it may be.

Can someone tell me how the code actually determines the page and sub page it is on, and or give me the place in the code where it does this, as I want to try and sus this out before putting up the code to do this.

I accidentally put this post also in the development section... sorry :)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Have to ask - why are the .js files in different places? Seems to me it would be more logical to keep them together and set scriptpath.
John
lorenjustins
Beginner
Beginner
Posts: 3
Joined: Thu Jul 17, 2003 6:48 am

Post by lorenjustins »

I have found the line that seems to be causing it all not to work

if(_url.charAt(0)!="/")_url="/"+_url;

in the file mmenudom.js

When I delete this line, everything highlights ok. I dont understand why. Anyone can help??
Post Reply