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

Hiermenus Go Forth, IV - DHTML Lab | 12

Logo

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



HM_PG_FontItalic

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

HM_PG_FontItalic 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 an italic font face.

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

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

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

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

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

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

JS expression: "(isMac) ? true : false)"
    The complete JS code is included in the parameter declaration. In the above example, HM_PG_FontItalic will be true if a Macintosh is being used and false 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 fntItal parameter in Version 3:
  • accepted only true Boolean or integer Boolean values.
  • was mandatory.

Next, HM_PG_FontColor.


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