Page: http://www.westeros.org/Citadel/Citadel-Frames.html
CSS: http://www.westeros.org/Citadel/Citadel-Frames.css
javascript : http://www.westeros.org/Citadel/Mouseover-Frames.js & http://www.westeros.org/Citadel/Menu.js
On the above page, I have the main menu on the left side. Clicking on any item in the main menu unhides the appropriate submenu on the right side. So far, so good (except in Opera). However, there's currently no way for visitors to tell which item out of the main menu they clicked on. And worse, once they click on an item from one of the submenus, they're taken to a new page which starts over with just the main menu displayed.
To improve the navigation, I'd like to do the following:
1) Once a user has clicked on an item from the main menu, I would like it to stay 'selected' (that is, showing the onmouseover version of the graphic) until another item on the main menu is clicked. I would also like to alter the pointer for that item to a standard arrow rather than the hand indicating a link.
2a) Once a user has clicked on an item from the currently active sub menu, which will load the index page of the chosen section, I would like that currently active sub menu to start off unhidden as the new page loads.
2b) As with the selected item from the main menu, I would like the selected item from the currently active sub menu to stay 'selected' (that is, showing the onmouseover version of the graphic) until another item on the main menu or the currently active sub menu is clicked. I would also like to alter the pointer for that item to a standard arrow rather than the hand indicating a link.
I have no idea if any of this is possible, however. 2a I could perhaps see solving with some sort of window.onload function that checks which section of the site a page belongs to (each submenu item corresponds to a folder), to determine if it should start out with a submenu loaded or not? I am not sure how I would go about checking that, however.
|