Hiermenus Go Forth, IV - DHTML Lab | 9
Hiermenus Go Forth, IV:
Version 4 - The Page-Specific Parameters
HM_PG_FontFamily
- Description
- Sets the font family for all menu item display text in the page. All menus, in all cascades (top-level and children) are affected.
HM_PG_FontFamily overrides site-wide global settings declared in the external script.
- Value
- Font or generic family name or prioritized list.
May be specified as:- string
- string JS expression to be evaluated
- Example Values
- string (font family name): "Arial"
- All menu item text in the page will be displayed using the Arial font.
string (generic family name): "sans-serif"- All menu item text in the page will be displayed using a sans-serif system font.
string (prioritized list): "Arial,Geneva,sans-serif"- All menu item text in the page will be displayed using the Arial font. If the user's system does not support Arial, then Geneva will be used. If the user's system does not support Geneva, then the sans-serif system font will be used.
JS expression: "getFont()"- A custom function that you have created will be called. The return value of this function will be the HM_PG_FontFamily parameter, and all menus in the page will comply.
JS expression: "(isMac) ? 'Geneva' : 'sans-serif'"- The complete JS code is included in the parameter declaration. In the above example, HM_PG_FontFamily will be "Geneva" if a Macintosh is being used and "sans-serif" 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 fntFam parameter in Version 3:
- was mandatory.
- did not accept JS expression values.
Next, HM_PG_FontSize.
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/5.html