 |
Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
|
|
 |

|
 |
 |
|
home / documentation / reference / fontcolorover
FontColorOver
- Description:
- The text color assigned when the mouse rolls over the menu item.
Also assigned to parent items if their child menus are visible and the item's
KeepHilite parameter is set to true.
- Value:
- String, "", or JavaScript expression that returns a string/"".
- Applies To:
- Menu Items.
- Browser Compatibility:
- FontColorOver is supported in all browsers, though not all browsers
may recognize all possible CSS values (especially Netscape 4.x). Additionally, be
careful with "system specific" colors such as threedhighlight which may cause
errors in browsers that don't support them.
- Comments:
- FontColorOver should be applied as a string, which means the
value you supply should always be in quotes. Allowed values for FontColorOver
are the same as those allowed in the standard CSS font-color property
(see the W3C Specs)
and in fact, the value you supply is transferred as is to the JavaScript
color property for each menu item.
For those browsers that support them, you may also use system specific colors
such as threedhighlight or menu. Note, however, that not all platforms
recognize such colors; and in fact some platforms will report errors when attempting
to use them. Be sure to test system colors extensively before deploying them, and
note that you may be able to exclude system colors for a specific browser or
platform using conditional parameter assignments.
See the DHTML Lab article Accessing the User-Defined System Colors, Part I
for further information on system colors.
- Examples:
// Ok:
FontColorOver:"blue",
FontColorOver:"#99CCFF", // #rrggbb
FontColorOver:"", // use style sheet default
FontColorOver:(HM_IE)?"menu":"white",
// menu if IE, white otherwise
// Incorrect:
FontColorOver:"greatgreen", // must be valid color identifier
FontColorOver:red, // quotes required
FontColorOver:"FFCC99", // use leading pound (#) with rgb
FontColorOver:'(HM_IE)?"menu":"white"', // no quoted expressions
- Default:
- "white"
- See Also:
-
FontColor,
FontColorSelected,
BGColor,
BGColorOver,
BGColorSelected,
IsPermHilite,
IsSelected,
IsRollover,
KeepHilite,
Using Classes Mini-Tutorial
|
|