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

Hiermenus Go Forth, IV - DHTML Lab | 10

Logo

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



HM_PG_FontSize

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

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

Value
Point Size.
May be specified as:
  • integer
  • string
  • string JS expression to be evaluated

Example Values
integer: 10
    All menu item text in the page will be displayed with a 10-point font.

string: "10"
    All menu item text in the page will be displayed with a 10-point font.

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

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

Next, HM_PG_FontBold.


Produced by Peter Belesis and

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

URL: http://www.webreference.com/dhtml/column40/6.html