spacer

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


home / experts / dhtml / column56
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Logo

Hiermenus Go Forth, XX:
Version 4.0.13 - The Complete Script (Full-Window)



Correcting the menu Z-Index

Version 4 continued the z-index logic used in Version 3. That is, menu trees were positioned above other page elements, but they shared common z-indices. Only one menu tree could be visible at any one time, so the common z-index was not a problem.

In Version 4, we introduced permanently-visible top-level menus. This means that an adjoining popup menu might be displayed under the permanent menu. See the illustration below:

Not all popup menus are displayed in this way. Many factors affect the z-index, including order-of-creation and the value of HM_GL/PG_CreateTopOnly. Therefore, you may have had popup menus displaying in the same space as a permanent one and never encountered this problem.

Judging from the mail, however, many of you have.

We have therefore adjusted the statements affecting the menu z-indices. Now, whenever a menu is displayed, its z-index is adjusted to be higher than any other menu. This guarantees that the menu display will not be wonky, as illustrated below:

On the next page, our courtesy syntax check.


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

All Rights Reserved. Legal Notices.
Created: July 12, 2001
Revised: July 12, 2001

URL: http://www.webreference.com/dhtml/column56/4.html