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

Hiermenus Go Forth, V - DHTML Lab | 9


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


Sets the display width for the "more" image displayed in items that have associated child menus. All menus in the page, in all cascades (top-level and children) are affected.

HM_PG_ImageSize 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: 10
    All "more" images in all menus in the page will be 10 pixels wide.

string: "15"
    All "more" images in all menus in the page will be 15 pixels wide.

JS expression: "getImageSize()"
    A custom function that you have created will be called. The return value of this function will be the HM_PG_ImageSize 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_ImageSize will be 15 if the browser window is less than 640 pixels wide, and 20 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 imgSiz parameter in Version 3:
  • accepted only integer values.
  • was mandatory.

Next, HM_PG_ImageHorizSpace.

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/8.html