Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us
Online Universities
Compare Prices
Promote Your Website
KVM Switches
Logo Design
Auto Insurance Quote
Free Business Cards
Televisions
Promotional Items
Best Price
Promotional Products
PDA Phones & Cases
Memory Upgrades
Shop Online

          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / documentation / reference / topuponhide

TopUponHide

Description:
JavaScript code to be executed each time the menu is hidden, but only if the menu was being displayed as a top level menu.

Value:
null, or String JavaScript expression.

Applies To:
Menus.

Browser Compatibility:
TopUponHide is supported in all browsers.

Comments:
This parameter defines JavaScript code that should be executed when the menu is being hidden, but only if the menu was being displayed as a top level menu. Compare this parameter to ChildUponHide, which defines JavaScript code that should be executed when the menu is being hidden after having been displayed as a child menu. A single menu can be used as both a top level menu and a child menu on the same page. This Child vs. Top distinction allows you to define different JavaScript code depending on how the menu is currently being utilized.

When using a String JavaScript expression (i.e., a JavaScript expression contained within quotes), that expression will not be evaluated until just before the menu is hidden. It will then be reevaluated every time the menu is hidden.

HierMenus version 6 provides a custom function in the HM_Loader.js file that can be particularly useful when called from the UponDisplay and UponHide parameters: HM_f_ToggleElementList, which allows you to hide select elements, or other windowed page elements that may be overlapping your menus (see FAQ #1). A detailed explanation of HM_f_ToggleElementList along with a working example can be found in Bulletin 6. Another common use of TopUponHide and TopUponDisplay is to synchronize link rollover effects with the appearance and hiding of menus. This topic is discussed in detail in Bulletin 12.

Examples:
// Ok:
TopUponHide:null,       // cancel inherited UponHide
TopUponHide:"HM_f_ToggleElementList(true,['select'],'tag')", 
       // show all select elements

// Incorrect:
TopUponHide:"null",     // no quotes around null
TopUponHide:HM_f_ToggleElementList(true,['select'],'tag'),
       // must have quotes around String JavaScript Expressions
Default:
null

See Also:
TopUponDisplay, ChildUponDisplay, ChildUponHide, Bulletin 6: Hiding Page Elements, Bulletin 12: Synchronizing Link Rollovers



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

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/topuponhide.html