Click to See Complete Forum and Search --> : Is there any way to retain the bgcolor of a menu tab after you mouse out?


stevemtno
12-08-2008, 05:54 PM
Is there any way using CSS to retain the background color of a menu tab after you move your mouse to the secondary menu? Is there a web state that corresponds to this?

I'm working on a new 2-level menu for our website and this has been a problem. I tried changing the javascript code, which took care of the problem, but it also incorporated a lot of the CSS into it, giving us less control over things (plus I'm more comfortable and/or familiar with CSS).

Here's a link to the test page:
http://newsroom2.stltoday.com/stltoday/pages.nsf/9C2225A4C505CC768625692100045EE4/06F2930BFF669F018625750700571796?OpenDocument

I would also be open to adding (but not replacing) the existing JS code.

Any help, suggestions, etc would be appreciated... thanks!

Steve

Fang
12-09-2008, 06:09 AM
Try this: http://www.456bereastreet.com/archive/200503/setting_the_current_menu_state_with_css/