spacer

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


home / experts / dhtml / column42
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Logo

Hiermenus Go Forth, VI:
Version 4 - The Page-Specific Parameters (cont'd)



HM_PG_ChildPerCentOver

Description
Sets the horizontal distance a child menu overlaps its parent menu, as a percentage of the parent menu's width. That is, if the parent menu is 120 pixels wide and HM_PG_ChildPerCentOver is given a value of 25, then the child overlap will be 25% of 120, which is 30. All menu trees in the page are affected.

HM_PG_ChildPerCentOver overrides HM_PG_ChildOverlap parameter and the site-wide global settings declared in the external script.

Value
Percent.
May be specified as:
Example Values
integer: 30

string: "20"

JS expression: "getChildPerCentOver()"

JS expression: "(IE4) ? ((document.body.clientWidth>800) ? 20 : 40) : ((window.innerWidth>800) ? 20 : 40)"

Default
If this parameter is omitted, the HM_PG_ChildOverlap parameter is used. If HM_PG_ChildOverlap is omitted, then the relevant Global Parameter value set in the external script is used.

Differences from Version 3 equivalent
The perCentOver parameter in Version 3:
Comments
If you do not want your child menus to overlap the parent menu, give HM_PG_ChildPerCentOver a value of 0.

To leave space between your child menus and their parents, give HM_PG_ChildPerCentOver a negative value (ex: HM_PG_ChildPerCentOver = -20. This would place your child menu away from the parent at a pixel distance of 20% of the parent's width.)

Next, HM_PG_ChildOffset.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

All Rights Reserved. Legal Notices.
Created: Dec 12, 2000
Revised: Dec 12, 2000

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