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

Hiermenus Go Forth, IV - DHTML Lab | 6

Logo

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



Here is a comparison table of the old Version 3 Global Parameters and new Version 4 Page-Specific Parameters:

Version 3 Global Parameters
(as of Version 3.10.3)
Version 4 Page-Specific Parameters
 deprecated in Version 4
 new to Version 4
menuVersion = 3;

menuWidth = 150; fntFam = "Arial,sans-serif";; fntSiz = "10"; fntBold = false; fntItal = false; fntCol = "blue"; overFnt = "white"; backCol = "#DDDDDD"; overCol = "#FFCCCC"; itemPad = 3; borWid = 2; borCol = "black"; borSty = "solid"; separator = 2; separatorCol = "black"; imgSrc = "http://.../tri.gif"; imgSiz = 10;

keepHilite = true; clickStart = 1; clickKill = true; childOverlap = 20; childOffset = 10; perCentOver = null; secondsVisible = .5;

isFrames = false; navFrLoc = "left"; mainFrName = "main";

HM_PG_MenuWidth = 150; HM_PG_FontFamily = "Arial,sans-serif"; HM_PG_FontSize = 10; HM_PG_FontBold = false; HM_PG_FontItalic = false; HM_PG_FontColor = "blue"; HM_PG_FontColorOver = "white"; HM_PG_BGColor = "#DDDDDD"; HM_PG_BGColorOver = "#FFCCCC"; HM_PG_ItemPadding = 3; HM_PG_BorderWidth = 2; HM_PG_BorderColor = "black"; HM_PG_BorderStyle = "solid"; HM_PG_SeparatorSize = 2; HM_PG_SeparatorColor = "black"; HM_PG_ImageSrc = "http://.../tri.gif"; HM_PG_ImageSize = 10;
HM_PG_ImageHorizSpace = 0; HM_PG_ImageVertSpace = 3;
HM_PG_KeepHilite = true; HM_PG_ClickStart = 1; HM_PG_ClickKill = true; HM_PG_ChildOverlap = 20; HM_PG_ChildOffset = 10; HM_PG_ChildPerCentOver = null; HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0; HM_PG_StatusDisplayLink = 1; HM_PG_UponDisplay = null; HM_PG_UponHide = null;

Notice that:

  1. Four parameters from Version 3 (menuVersion, isFrames, navFrLoc and mainFrName) are no longer used in Version 4. These four were true "global" parameters, and should only be applied site-wide. They have been moved to the new site-wide in-script Global Parameters, which we will be discussing in a future installment.

  2. The parameter names have the HM_ prefix, to avoid conflict with other scripts. They also have an additional prefix (PG_) to easily identify them as page-specific. Finally, the descriptive part of their name is, in many cases, more descriptive than before, for easy purpose identification. For example, the confusing overCol has been changed to HM_PG_BGColorOver.

  3. Six new parameters are introduced. These are HM_PG_ImageHorizSpace, HM_PG_ImageVertSpace, HM_PG_StatusDisplayBuild, HM_PG_StatusDisplayLink, HM_PG_UponDisplay and HM_PG_UponHide.

The Page-Specific Parameters can be included in any page that uses HM, before the external HM script is loaded.


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