PDA

View Full Version : Is there any way to retain the bgcolor of a menu tab after you mouse out?



SteveMTNO
Dec 8th, 2008, 11:59 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

abduraooft
Dec 9th, 2008, 10:45 AM
I'd recommend you to have a look at the working of http://www.tjkdesign.com/articles/new_drop_down/default.asp. It doesn't need any javascript effects to make the required effect.

SteveMTNO
Dec 9th, 2008, 05:57 PM
This would work, but I also need to keep the primary tab colored in some way so that the user know which section of the site they're in. The example doesn't really do anything more than what I've already got, unless I'm missing something (which is entirely possible)

Please correct me if I'm wrong.. Thanks!

Steve