Question
Spry menus won't display image rollovers
I have a menu that requires a different image for each
top-level menu item but, no matter what I do, I'm unable to get my
image backgrounds to switch to rollover states on hover/mouseover.
I set up IDs for each of the main menu items and used these to assign a different b/g image to each top <li> tag (the submenus are just CSS color and work correctly). I don't need the submenu arrow indicator so I removed those properties. I've been referring to the instructions, experimenting with endless variations, and searching various forums but I just can't get the rollover effect to work.
A sampling of my CSS attempts follows (I'm sorry -- I couldn't get it to insert with "Attach Code"). Can someone please let me know what I'm doing wrong or if there's another rule(s) I still need to modify or create? I'm all out of ideas and am very desperate for a solution now. Thank you....
Vera
/* Top level menu item -- normal state images: THIS WORKS */
ul.MenuBarVertical #home {
background-image: url(../images/MENU/norm_home.jpg);
}
ul.MenuBarVertical #about {
background-image: url(../images/MENU/norm_about.jpg);
}
etc...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/* Top level menu item -- hover state images: THIS HAS NO EFFECT */
ul.MenuBarVertical a:hover #home {
background-image: url(../images/MENU/cur_home.jpg);
}
ul.MenuBarVertical a:hover #about {
background-image: url(../images/MENU/cur_about.jpg);
}
etc...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I also tried this, with no effect:
ul.MenuBarVertical a:hover #home, ul.MenuBarVertical a:focus #home {
background-image: url(../images/MENU/ro_home.jpg);
}
ul.MenuBarVertical a:hover #about, ul.MenuBarVertical a:focus #about {
background-image: url(../images/MENU/ro_about.jpg);
}
I set up IDs for each of the main menu items and used these to assign a different b/g image to each top <li> tag (the submenus are just CSS color and work correctly). I don't need the submenu arrow indicator so I removed those properties. I've been referring to the instructions, experimenting with endless variations, and searching various forums but I just can't get the rollover effect to work.
A sampling of my CSS attempts follows (I'm sorry -- I couldn't get it to insert with "Attach Code"). Can someone please let me know what I'm doing wrong or if there's another rule(s) I still need to modify or create? I'm all out of ideas and am very desperate for a solution now. Thank you....
Vera
/* Top level menu item -- normal state images: THIS WORKS */
ul.MenuBarVertical #home {
background-image: url(../images/MENU/norm_home.jpg);
}
ul.MenuBarVertical #about {
background-image: url(../images/MENU/norm_about.jpg);
}
etc...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/* Top level menu item -- hover state images: THIS HAS NO EFFECT */
ul.MenuBarVertical a:hover #home {
background-image: url(../images/MENU/cur_home.jpg);
}
ul.MenuBarVertical a:hover #about {
background-image: url(../images/MENU/cur_about.jpg);
}
etc...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I also tried this, with no effect:
ul.MenuBarVertical a:hover #home, ul.MenuBarVertical a:focus #home {
background-image: url(../images/MENU/ro_home.jpg);
}
ul.MenuBarVertical a:hover #about, ul.MenuBarVertical a:focus #about {
background-image: url(../images/MENU/ro_about.jpg);
}
