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

Hiermenus Go Forth, IV - DHTML Lab | 8

Logo

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



HM_PG_MenuWidth

Description
Sets the menu width for all menus in the page. All menus, in all cascades (top-level and children) are affected.

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

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

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

Example Values
integer: 130
    All menus in the page will be 130 pixels wide.

string: "130"
    All menus in the page will be 130 pixels wide.

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

JS expression: "(IE4) ? ((document.body.clientWidth
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_MenuWidth will be 150 if the browser window is less than 800 pixels wide, and 200 if it is not.

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

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

Next, HM_PG_FontFamily.


Produced by Peter Belesis and

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

URL: https://www.webreference.com/dhtml/column40/4.html