Hiermenus Go Forth, V - DHTML Lab | 10
Hiermenus Go Forth, V:
Version 4 - The Page-Specific Parameters (cont'd)
HM_PG_ImageHorizSpace
- Description
- Specifies additional horizontal space to be added between the item border and the "more" image in a menu item with associated child menu. This space is in addition to the padding added through the HM_PG_ItemPadding and associated parameters. All menus, in all cascades (top-level and children) are affected.
HM_PG_ImageHorizSpace overrides site-wide global settings declared in the external script.
- Value
- Pixels.
May be specified as:- integer
- string
- string JS expression to be evaluated
- Example Values
- integer: 3
- An extra three pixels of horizontal space will be added between "more" images and their containing item's border in all menus on the page.
string: "2"- An extra two pixels of horizontal space will be added between "more" images and their containing item's border in all menus on the page.
JS expression: "getImageHorizSpace()"- A custom function that you have created will be called. The return value of this function will be the HM_PG_ImageHorizSpace 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_ImageHorizSpace will be 0 if the browser window is less than 640 pixels wide, and 3 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 optional imgHspace parameter in Version 3:
- accepted only integer values.
Next, HM_PG_ImageVertSpace.
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/9.html