Hiermenus Go Forth, V - DHTML Lab | 7 | WebReference

Hiermenus Go Forth, V - DHTML Lab | 7

Logo

Hiermenus Go Forth, V:
Version 4 - The Page-Specific Parameters (cont'd)



HM_PG_SeparatorColor

Description
Sets the color of the item-separating line for all menus in the page. All menus, in all cascades (top-level and children) are affected.

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

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

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

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

Note:
Only Internet Explorer and Netscape 6 will render the separator color. Navigator 4 will always render the separator in the same color as the menu border.

Example Values
string: "#99AD3F"
    All item-separating lines in all menus on the page will display in the color defined by #99AD3F

string: "red"
    All item-separating lines in all menus on the page will display in red.

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

JS expression: "(IE4) ? 'threedface' : 'black'"
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_SeparatorColor will be threedface (an IE4+ user-defined system color value) if Explorer for Windows is being used and black 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 separatorCol 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. "threedhighlight"

Next, HM_PG_ImageSrc.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Dec 06, 2000
Revised: Dec 06, 2000

URL: https://www.webreference.com/dhtml/column41/6.html