Hiermenus Go Forth, IV - DHTML Lab | 4 | WebReference

Hiermenus Go Forth, IV - DHTML Lab | 4

Logo

Hiermenus Go Forth, IV:
Version 4 - The Page-Specific Parameters



HM_PG_BGColorOver

Description
Sets the background color of all highlighted menu items in the page. All menus, in all cascades (top-level and children) are affected.

HM_PG_BGColorOver overrides site-wide global settings declared in the external script.

HM_PG_BGColorOver can be overwritten on a per-tree basis by the mouseover_background_color parameter element in top-level menu arrays.

Value
Hexadecimal color values or color name.
IE-only: May also use CSS decimal RGB color value or user-defined system color value.

May be specified as:
  • string
  • string JS expression to be evaluated

Example Values
string: "#FFFFAA"
    All highlighted menu item backgrounds will display in the color defined by #FFFFAA

string: "lightgreen"
    All highlighted menu item text backgrounds will display in lightgreen.

JS expression: "getBGColorOver()"
    A custom function that you have created will be called. The return value of this function will be the HM_PG_BGColorOver parameter, and all menus in the page will comply.

JS expression: "(IE4) ? 'threedhighlight' : 'orange'"
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_BGColorOver will be threedhighlight (an IE4+ user-defined system color value) if Explorer is being used and orange for all other browsers.

Default
If this parameter is omitted the relevant Global Parameter value, set in the external script is used.

Differences from Version 3 equivalent
The overCol parameter in Version 3:
  • was mandatory.
  • did not accept JS expression values.

Comments
If you are writing for an IE-only environment, for example, a corporate intranet, you can also use:
  • CSS decimal RGB color values in the form: rgb(red green blue)
    Ex. "rgb(205 5 122)"
  • user-defined system color values. See Column 24 for a complete list of these values.
    Ex. "activecaption"

Next, HM_PG_ItemPadding.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Nov 22, 2000
Revised: Nov 22, 2000

URL: http://www.webreference.com/dhtml/column40/12.html