Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

vertical menus

3:30 pm on Sep 12, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 19, 2005
votes: 0


I am making a menu in css and javascript.The menu is made up of ul and li tags with anchors. I used css to style the menu and Javascript to hide and show the menu with the onclick event handler. I want to add some extra features, like these:

1). When the user clicks on an item the submenu opens(I can do this) and the color of the main item changes to a different color and stays that color until the menu collapses or another menu is clicked (I can't do this part).

2). When the user refreshes the page or returns to it using the browsers back button I want the menu to open so I can tell the user where they are.

I really need help on this. I am looking for an efficient way to accomplish this.

Thanks for your help!