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

Hiermenus Go Forth, VI - DHTML Lab | 11

Logo

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



HM_PG_TopSecondsVisible

Description
Sets the time, in seconds, that the top-level menu of a menu tree remains visible after the user mouses out of the menu tree. All menu trees in the page are affected.

Top-Level menu hidden
after .5 seconds:

Top-Level menu hidden
after 2 seconds:



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

HM_PG_TopSecondsVisible is only meaningful if HM_PG_ClickKill is not set to true.

HM_PG_TopSecondsVisible can be overruled on a per-tree basis by the top_is_permanent parameter element in top-level menu arrays, which causes the top-level menu to be permanently visible and its display is not instigated by any user action.

Value
Number
May be specified as:
  • integer
  • floating point number
  • string
  • string JS expression to be evaluated

Example Values
integer: 1
    The top-level menu will remain visible for one second after the user mouses out of the menu tree.

floating point number: .5
    The top-level menu will remain visible for a half second after the user mouses out of the menu tree.

string: "1.5"
    The top-level menu will remain visible for one and a half second after the user mouses out of the menu tree.

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

JS expression: "(isMac) ? 1 : .75)"
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_TopSecondsVisible will be 1 if a Macintosh is being used and .75 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 secondsVisible parameter in Version 3:
  • accepted only number values.
  • was mandatory.

Next, HM_PG_StatusDisplayBuild.


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