Asp .net 2.0 Menu Hover style

C

cheungkb

Hi there,

I have a problem with the menu control that someone might be able to
shed some light on.

I have 1 static level and 1 dynamic level.

On the static level - I have a different css class when the pointer
hovers over the menu item. So, a menu item has a style of say
"normal", and when the pointer hovers over it, it switches to say
"hovering". So far so good.

Now I also have one dynamic level, so menu items will expand out the
dynamic menu when the pointer is hovered over the static parent menu
item. The problem is, once the pointer moves out of the parent menu
item into the child dynamic menu, the parent loses its hovered style
class and resets it to the normal style. This obviously looks weird.

E.g,

So suppose you have the menu:

Test1 Test2 Test3 Test4

Hovering over Test2 will switch the style of Test2 menu item to
"hovering" and the a dynamic menu will appear under Test2. Now, when
you move the pointer into the dynamic menu under Test2, the style in
Test2 switches back to the normal style.

Is there anyway of allowing Test2 to keep its hovered style when the
child sub-menu is open?

Thanks,

Gunslinger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top