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

Hiermenus Go Forth, IV - DHTML Lab | 11

Logo

Hiermenus Go Forth, IV:
Version 4 - The Page-Specific Parameters



HM_PG_FontBold

Description
Sets the font weight for all menu item display text in the page. All menus, in all cascades (top-level and children) are affected.

HM_PG_FontBold 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
    All menu item text in the page will be displayed in a bold font face.

true Boolean: false
    All menu item text in the page will be displayed in a normal weight font face.

integer Boolean: 1
    All menu item text in the page will be displayed in a bold font face.

integer Boolean: 0
    All menu item text in the page will be displayed in a normal weight font face.

string: "true"
    All menu item text in the page will be displayed in a bold font face.

string: "false"
    All menu item text in the page will be displayed in a normal weight font face.

JS expression: "getWeight()"
    A custom function that you have created will be called. The return value of this function will be the HM_PG_FontBold parameter, and all menus 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_FontBold 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 fntBold parameter in Version 3:
  • accepted only true Boolean or integer Boolean values.
  • was mandatory.

Next, HM_PG_FontItalic.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Nov 22, 2000
Revised: Nov 22, 2000

URL: https://www.webreference.com/dhtml/column40/7.html