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
Memory
Domain registration
Free Business Cards
Server Racks
Promotional Golf
GPS
Logo Design
Best Price
Imprinted Gifts
Cell Phones
Compare Prices
PDA Phones & Cases
Promotional Pens
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 / topmenuy

TopMenuY

Description:
The vertical (top) pixel position of the menu when the menu is being displayed as a top level menu.

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

Applies To:
Menus.

Browser Compatibility:
TopMenuY is supported in all browsers.

Comments:
Note that this parameter defines the menu's top pixel position (in relationship to the HTML document) when the menu is being displayed as a top level menu. Compare this parameter to ChildMenuY, which defines the menu's top pixel position when the menu is used 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 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 top pixel location of the menus. You must provide only an integer or an expression that returns an integer.

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

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

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

TopMenuY:null,
TopMenuY:"HM_default_y_position",
See Also:
TopMenuX, ChildMenuX, 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/topmenuy.html