Hi Richard,

> Couldn't you use somthing like this? That way you're just compareing
> the last bit of the URL (the filename) with the filenames in the URL.

But consider these href values:
http://www.mydomain.com/default.asp
http://www.mydomain.com/contact/default.asp
http://www.mydomain.com/default.asp?queryString=parameter
http://www.mydomain.com/default.asp#namedAnchor

You need to make sure the script takes these values into consideration.

> Note that "nav" is the ID of the <div> that contains my navigation
> list. Alo the script belkow doesn't generate possible non-semantic
> code - an <em> is fine if all you want to do is emphasis the link,
> but why not just give it a class instead? That way you can style it
> anyway you want...

If you read the article, you'll see that the script can do both depending on
the author's choice:
It removes the anchor and replaces it with an EM element or it applies a
class to the "current" anchor.

Regards,
Thierry | www.TJKDesign.com

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to