spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com


home / experts / dhtml / column40
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Logo

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



Besides the naming scheme and the addition/removal of parameters, the Version 4 Page-Specific Parameters differ from the Version 3 Global Parameters in two very important ways:

 Version 3Version 4
1.The inclusion of in-page parameters on every page that used HM was mandatory. Also, every parameter had to be included. If these prerequisites were not met the HM script would not run. The parameters set the initial, global, HM look and behavior.The inclusion of in-page parameters is optional. Any number may be included or they may be omitted completely. Their purpose is not to set the initial HM values but to override these values on a per-page basis. For example, if you want a specific menu rollover color scheme for a particular page that's different from all the other pages that use HM, you would only include the four font and background color parameters in the page:
HM_PG_FontColor = "blue";
HM_PG_FontColorOver = "white";
HM_PG_BGColor = "#DDDDDD";
HM_PG_BGColorOver = "#FFCCCC";
2. The Global Parameters could only be declared with a specific value type. For example, the menu item font size parameter, fntSiz accepted only a string value:
fntSiz = "10";
The Page-Specific Parameters can usually be declared with several different value types. The menu item font size parameter, HM_PG_FontSize, can be declared in any of the following ways:
HM_PG_FontSize = "10"; (string)
HM_PG_FontSize = 10; (integer)
HM_PG_FontSize = (isMac) ? 12 : 10; (JavaScript expression)
HM_PG_FontSize = getFontSizeFunction();
          (JavaScript function return value)

On the following pages, we'll look at each of the Page-Specific Parameters in detail.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

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

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