Hiermenus Go Forth, VI - DHTML Lab | 7
Hiermenus Go Forth, VI:
Version 4 - The Page-Specific Parameters (cont'd)
HM_PG_ClickKill
- Description
- Sets the menu tree hide event to page "click" (if true) and menu "mouseout" (if false) for all menu trees in the page.
HM_PG_ClickKill overrides site-wide global settings declared in the external script.
- Value
- Boolean.
May be specified as:- true Boolean (true / false)
- integer Boolean (1 / 0)
- string
- string JS expression to be evaluated
- Example Values
- true Boolean: true
- Menu trees are hidden when the user clicks anywhere on the page away from a menu.
- true Boolean: false
- Menu trees are hidden when the user mouses out of the menu tree.
- integer Boolean: 1
- Menu trees are hidden when the user clicks anywhere on the page away from a menu.
- integer Boolean: 0
- Menu trees are hidden when the user mouses out of the menu tree.
- string: "true"
- Menu trees are hidden when the user clicks anywhere on the page away from a menu.
- string: "false"
- Menu trees are hidden when the user mouses out of the menu tree.
JS expression: "getClickKill()"- A custom function that you have created will be called. The return value of this function will be the HM_PG_ClickKill parameter, and all menu trees in the page will comply.
JS expression: "(isMac) ? false : true)"- The complete JS code is included in the parameter declaration. In the above example, HM_PG_ClickKill will be false if a Macintosh is being used and true for all other platforms.
- true Boolean: false
- Default
- If this parameter is omitted, the relevant Global Parameter value set in the external script is used.
- Differences from Version 3 equivalent
- The clickKill parameter in Version 3:
- was mandatory.
- did not accept JS expression values.
- Comments
- HM_PG_ClickKill sets the user event dynamically. Do not change the onMouseOut link event to onClick. Links should always have an onMouseOut event. In this way, we minimize HTML page code interventions.
Next, HM_PG_ChildOverlap.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Dec 12, 2000
Revised: Dec 12, 2000
URL: https://www.webreference.com/dhtml/column42/4.html