spacer

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

home / experts / dhtml / column36
Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

Logo

Hiermenus Go Forth, II:
Version 4 - The External Arrays - New Menu Tree Parameters



Element 10 - top_is_horizontal

Description
Causes the items in a top-level menu to be displayed side-by-side (horizontally)


The menu above is permanently positioned, using the top_is_permanent Menu Tree Parameter and horizontally laid out using top_is_horizontal. We have created an in-page rollover menu extremely useful for toolbars or frameset use of HM.

DHTML Diner

The text link, above, causes a top-level menu to appear upon mouseover. This menu also has a horizontal layout and may be useful where space or design considerations are involved.

Value
Boolean
May be specified as:
Example Values
true Boolean: true
true Boolean: false

integer Boolean: 1
integer Boolean: 0

JS expression (function call): "setTopHorizontal()"
JS expression (complete statement): "(IE4) ? (document.body.clientWidth>640) : (window.innerWidth>640)"

Default
false.
If parameter is omitted, the top-level menu is NOT horizontally laid out. Items are displayed vertically.

Differences from Version 3 equivalent
There is no Version 3 equivalent. All menu items were displayed vertically, top-to-bottom, one under the other.

Comments
This feature is especially useful when used with a permanently-visible top-level menu, as in the first live example above.

Next, we determine whether the child menus in a menu tree are horizontal..


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji

All Rights Reserved. Legal Notices.
Created: Sept 05, 2000
Revised: Sept 05, 2000

URL: http://www.webreference.com/dhtml/column36/3.html