Hiermenus Go Forth, VI - DHTML Lab | 5 | WebReference

Hiermenus Go Forth, VI - DHTML Lab | 5

Logo

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



HM_PG_KeepHilite

Description
Sets the item highlight rollover behavior for all menu trees in the page. Parent menu items that spawn a child menu remain highlighted while the user navigates the child menu.



Highlight is maintained (HM_PG_KeepHilite = true)


Highlight is not maintained (HM_PG_KeepHilite = false)

HM_PG_KeepHilite 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
    Parent item highlight is maintained during child menu navigation for all menu trees in the page.

true Boolean: false
    Parent item highlight is not maintained during child menu navigation for all menu trees in the page.

integer Boolean: 1
    Parent item highlight is maintained during child menu navigation for all menu trees in the page.

integer Boolean: 0
    Parent item highlight is not maintained during child menu navigation for all menu trees in the page.

string: "true"
    Parent item highlight is maintained during child menu navigation for all menu trees in the page.

string: "false"
    Parent item highlight is not maintained during child menu navigation for all menu trees in the page.

JS expression: "getKeepHightlight()"
    A custom function that you have created will be called. The return value of this function will be the HM_PG_KeepHilite 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_KeepHilite will be false if a Macintosh is being used and true for all other platforms.

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

Differences from Version 3 equivalent
The keepHilite parameter in Version 3:
  • accepted only true Boolean or integer Boolean values.
  • was mandatory.


Next, HM_PG_ClickStart.


Produced by Peter Belesis and

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

URL: http://www.webreference.com/dhtml/column42/2.html