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
Auto Insurance Quote
Computer Deals
Phone Cards
Cell Phones
Disney World Tickets
Imprinted Promotions
Imprinted Gifts
Corporate Awards
Shop Online
Promos and Premiums
GPS
Get Business Software
Logo Design
KVM Switches

          
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 / childmenux

ChildMenuX

Description:
The horizontal (left) pixel position of the menu when the menu is being displayed as a child level menu.

Value:
Integer, null, JavaScript expression that returns an integer, or String JavaScript expression that returns an integer.

Applies To:
Menus.

Browser Compatibility:
ChildMenuX is supported in all browsers.

Comments:
Note that this parameter defines the menu's left pixel position (in relationship to the HTML document) when the menu is being displayed as a child level menu. Compare this parameter to TopMenuX, which defines the menu's left pixel position when the menu is used as a top 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 settings 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 positioned. It will then be reevaluated every time the menu is repositioned or redisplayed. Thus, a string JavaScript expression can be crafted to return a different, custom result dynamically each time the menu is positioned. Other JavaScript expressions (not enclosed in quotes) are only evaluated once when the page is first loaded.

Special keywords can be utilized in String JavaScript expressions that allow you to fine tune the positional display of the menus, including HM_default_x_position, HM_default_y_position, HM_window_top_edge, HM_window_right_edge, HM_window_bottom_edge, and HM_window_left_edge. In addition to these keywords, HierMenus version 6 provides two custom functions in the HM_Loader.js file; HM_f_GetMenuDimension and HM_f_GetElementXY that allow you to position menus based on their width or height (handy for bottom or right edge based positioning) or the location of some other element within the page (handy for relative positioning). Each of these uses is discussed further in the mini-tutorial Menu Positioning.

The integer provided (or returned from a JavaScript expression) is always interpreted as the left pixel location of the menu. You must provide only an integer or an expression that returns an integer.

Examples:
// Ok:
ChildMenuX:100,
ChildMenuX:null,                         // revert to default
ChildMenuX:"HM_default_x_position+10",      // reevaluated as needed
ChildMenuX:"MyCustomFunction('foobar')", // call your own function
ChildMenuX:(HM_IE)?10:20,  // evaluated only once on page load

// Incorrect:
ChildMenuX:"100",
ChildMenuX:HM_default_x_position+10, // must have quotes to use keywords
ChildMenuX:20px,
Default:
null

Note that setting ChildMenuX to null is equivalent to setting it to "HM_default_x_position"; i.e., the following two settings result in the same value:

ChildMenuX:null,
ChildMenuX:"HM_default_x_position",
See Also:
TopMenuX, TopMenuY, ChildMenuY, Menu Positioning Mini-Tutorial



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