Hi,
I understand what you are trying to acheive, but its not the best or easiest way of doing it (using js is 'old' method) CSS makes it alot easier if you take 5 mins to grasp.
Here is something I found to give you an idea. It doesn't actualy demonstrate how to change the state of the menu item when clicked but its easy to show a different state on a page if required:
http://superfluousbanter.org/archives/2004/05/navigation_matr.php
post back if this does not help, I have an example myself I can make available to you and save lots of headaches...
Hi every1 ![]()
I'm creating a nav bar for my site and Im using js for rollover images but I want the 2nd image to remain there after it's been clicked.
I know it's something about 'onClick' or 'onMouseClick' but at the same time I'm using onMouseOut to revert back to the 1st image... does that take precedence over the 'onClick' code?
What is the difference between 'onClick' and 'onMouseClick' anyway?
I hope I made sense there!
Any help would be greatly appreciated ![]()

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic