spacer

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


home / experts / dhtml / column42
Developer News
iPhone Users Just Want to Have Fun
Oops! I Fixed the Linux Kernel
Jim Zemlin: The New Center of Linux Gravity
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



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Advanced Web Performance Optimization · Simple Comments Meets OpenID · Primitive Data Types, Arrays, Loops, and Conditions: Part 3
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Five Key Factors Drive Mobile Device Growth · Lian-Li Launches New Power Supply Line, Rack Mount Kit and Fan Blower · OpenOffice.org Tips and Tricks Part III

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

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