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

Hiermenus Go Forth, V - DHTML Lab | 6


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


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

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

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

Example Values
integer: 2
    All item-separating lines in all menus on the page will be two pixels high.

string: "3"
    All item-separating lines in all menus on the page will be three pixels high.

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

JS expression: "(IE4) ? ((document.body.clientHeight>640) ? 5 : 2) : ((window.innerHeight>640) ? 5 : 2)"
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_SeparatorSize will be 5 if the browser window is more than 640 pixels high, and 2 if it is not.

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

Differences from Version 3 equivalent
The separator parameter in Version 3:
  • accepted only integer values.
  • was mandatory.

Next, HM_PG_SeparatorColor.

Produced by Peter Belesis and

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

URL: http://www.webreference.com/dhtml/column41/5.html