spacer

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

home / experts / dhtml / column36
Developer News
Microsoft Shows Some Ankle With Visual Studio
Gentoo Linux Cancels Distribution
It's Official: Windows 7 at PDC, WinHEC
Logo

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



Element 9 - top_is_permanent

Description
Defines whether the top-level menu in a menu tree is permanently visible.


The menu on the left is permanently positioned and visible on this page. It is the top-level menu in a menu tree, meaning that all child menus in the cascade will appear off of it.


The in-page text links on the left are also a top-level menu. There are no child menus and no cascade. Rollover the text with your mouse. By omitting border, separator and initial color values, we have created a text-link rollover using the HM script!

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

integer Boolean: 1
integer Boolean: 0

JS expression (function call): "setPermanence()"
JS expression (complete statement): "(IE4)"
JS expression (complete statement): "(NS4)"

Default
false.
If parameter is omitted, the top-level menu is NOT permananetly visible and assumes pop-up behavior.

Differences from Version 3 equivalent
There is no Version 3 equivalent. Top-level menus always appeared after user mouse events.

Comments
This is possibly the most powerful of the new top-level menu features.
It changes the HM script from a pop-up cascading menu script to a general-purpose in-page rollover script!

Important Note #1:
The HM script creates elements dynamically for DHTML-enabled browsers. If you choose to have a permanently-visible top-level menu array, keep in mind that it will only appear in IE4+ and NS4+. This is fine if your users all have DHTML browsers, as might be the case in a controlled intranet environment. On the Web, this parameter should be true only if you have different pages for old browsers, or you include some alternative type of navigation for old browsers.

Important Note #2:
You should use permanently-visible menus only if:

  1. Your complete page is DHTML-based. That is, you have formatted your page with positioned elements and not tables. If all your elements are positioned, you should have no problem placing a permanent menu amongst them.
  2. Your page is not DHTML-based but you make space allowances for permanent menus. In a table-based layout, for example, you can insert a placeholder image, the size of the menu, and then position the menu on top of the static image. This image may be transparent (as I have done on this page) or may include alternate navigation for old browsers.

Important Note #3:
This parameter should always be used in conjuction with the left_position and top_position parameters (see previous column), as a permanently visible menu needs absolute position coordinates.


The next parameter-element addresses a common request: horizontal menu layout.


Produced by Peter Belesis and



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 Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Controllers: Programming Application Logic - Part 2 · How to Use JavaScript to Validate Form Data · Controllers: Programming Application Logic
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Sprint Launches Mobile WiMAX Network · Albatron Downsizes with the KI780G Mini-ITX Motherboard · Can't Find a Wi-Fi Network? Make Your Own.

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

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