spacer

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

home / experts / dhtml / column36
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Logo

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



Element 11 - tree_is_horizontal

Description
Causes the items in all child menus in a menu tree to be displayed side-by-side (horizontally)


The menu to the left is a permanently positioned top-level menu. All child menus appear in a horizontal layout.










The menu above is a horizontal permanently positioned top-level menu. The child menus are also horizontal.

DHTML Lab



The text link, above, causes a horizontal top-level menu to appear upon mouseover. The child menus are also horizontal.

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

integer Boolean: 1
integer Boolean: 0

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

Default
false.
If omitted, the child menus are NOT horizontally laid out. Items are displayed vertically.

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

Comments
This parameter sets values for all child menus in a menu tree regardless of the number of menus. It does not affect the top-level menu layout. To create a menu tree where all menus (top-level and child menus) are horizontal you need to set top_is_horizontal as well as tree_is_horizontal.

Next, a parameter to help eliminate the guesswork in positioning.


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 >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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