|
home / documentation / reference / itemclassover
ItemClassOver
- Description:
- The CSS class name that should be applied to this menu item when the
mouse hovers over it.
- Value:
- String, "", or JavaScript expression that returns a string/"".
ItemClassOver should match an existing class name in a user-defined
CSS style sheet elsewhere on the HTML page.
- Applies To:
- Menu Items.
- Browser Compatibility:
- ItemClassOver is not supported in Netscape 4.x.
- Comments:
- ItemClassOver, along with the menu, button, and other item specific
class name configuration parameters, allows you to supply basic stylings
for your menus (such as font families and sizes, and background/foreground
color schemes) via CSS style sheets external to HierMenus. To use ItemClassOver,
you must first define a class in your style sheets. You can then apply that
class name to your menu items using the ItemClassOver configuration parameter.
Defining style sheet classes is well beyond the scope of HierMenus documentation.
For further information pertaining to style sheet rules and available parameters,
we refer you to the W3C's Style Sheet
section.
Dimensioning parameters, including width, height, padding, and border widths,
should not be included in your CSS class definition. If you use these, the
results will generally be undesirable (or they will just be ignored by
HierMenus).
Special care must be taken when using classes with HierMenus to ensure that
HM's own configuration parameters, which are considered to be more specific
than class name assignments, do not override your style sheet settings. For
further details view the Using Classes mini-tutorial.
ItemClassOver is assigned to the menu item when the mouse hovers over it. It
is also assigned to a menu item permanently if the menu item's IsPermHilite
configuration parameter is set to true. By altering your color schemes in
your ItemClass and ItemClassOver settings, you can control the
mouseover effect of your menu items entirely via style sheet settings.
ItemClassOver is case sensitive.
- Examples:
// Ok:
ItemClassOver:"hm_itemover",
ItemClassOver:"", // remove over class for this item
ItemClassOver:(window.useClasses)?"hm_itemover":"",
// if the user defined variable "useClasses" is
// true, use the classname hm_itemover
// Incorrect:
ItemClassOver:hm_itemover, // quotes required
ItemClassOver:'(window.useClasses)?"hm_itemover":""',
// no quoted expressions
- Default:
- ""
- See Also:
- MenuClass,
ItemClass,
ItemClassSelected,
ButtonClass,
ButtonClassOver,
ButtonClassSelected,
Using Classes Mini-Tutorial
|