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)



[Editor's note: this page was updated on May 1, 2003 to add support for later browsers.]

HM_PG_UponHide

Description
Specifies a JavaScript statement to be evaluated when a menu tree is hidden. All menu trees in the page are affected.

The menu below has a SELECT form element immediately below it. When the menu appears, the form element is hidden. Otherwise, the element could show through the menu. See DHTML Diner for a discussion on form element persistence.

Show the menu and hide the SELECT element


HM_PG_UponHide overrides site-wide global settings declared in the external script.

HM_PG_UponHide can be overruled on a per-tree basis by the evaluate_upon_tree_hide parameter element in top-level menu arrays.

Value
JS statement.
May be specified as:
JS expression: "showSelect(true)"

JS expression: "document.bgColor='white'"


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

Differences from Version 3 equivalent
There is no Version 3 equivalent. Authors were expected to insert their own code if they needed additional statements executed when a menu tree was hidden.


Comments
This parameter should be used in conjunction with HM_PG_UponDisplay, discussed on the previous page.


This concludes our discussion of the Page-Specific Parameters. We are now ready to publish the external script in our next column.


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 >
Performance Optimizations for High Speed JavaScript · Advanced Web Performance Optimization · Simple Comments Meets OpenID
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Installing Oracle E-Business Suite R12 on Windows 2003 · When the Cloud Storms on You · eBay Watch: DSR 4.3 Tips, Tactics and Seller POV

All Rights Reserved. Legal Notices.
Created: December 12, 2000
Revised: May 1, 2003

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