|
home / documentation / reference / menuopacity
MenuOpacity
- Description:
- The opacity level to apply to the menu.
- Value:
- null, or a number ranging from 0 (completely
transparent) to 1 (completely opaque).
- Applies To:
- Menus.
- Browser Compatibility:
- MenuOpacity is supported in Internet Explorer 5.5+,
Netscape 6.1+, Mozilla 1.0+, and Safari 1.1+.
- Comments:
- You must always specify MenuOpacity as a number between 0
and 1 (inclusive), or a JavaScript expression that returns a number in that range.
Do not use quoted strings or non-numerical characters when defining
MenuOpacity. MenuOpacity is always interpreted by HM as a percentage;
i.e., .8 = 80% opaque.
Special care must be taken when assigning opacity via this parameter (MenuOpacity)
and via an Internet Explorer filter. See the reference entry for IEFilters
for details.
Setting both MenuOpacity and ItemOpacity on the same menu is not
recommended. Some browsers (especially Internet Explorer 5.5) can have trouble
rectifying the combined opacity effect, resulting in some menu elements not being
displayed properly (if at all).
null is the only non-numeric value allowed for MenuOpacity. When
set to null, the MenuOpacity setting is ignored by HierMenus.
- Examples:
// Ok:
MenuOpacity:.2, // 20% opaque
MenuOpacity:.85, // 85% opaque
MenuOpacity:null, // ignore opacity setting
MenuOpacity:(window.HM_IE55)?null:.7,
// ignore setting in IE5.5+; 70% otherwise
// Incorrect:
MenuOpacity:".4",
MenuOpacity:10%,
MenuOpacity:.5%,
MenuOpacity:"(window.HM_IE55)?null:.7",
// do not quote expressions here
- Default:
- null
- See Also:
-
ItemOpacity,
IEFilters
|