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














          
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 / displaytext

DisplayText

Description:
The text to display within the menu item.

Value:
String, null, or JavaScript expression that returns a String/null.

Applies To:
Menu Items.

Browser Compatibility:
DisplayText is supported in all browsers.

Comments:
You may include embedded HTML within your menu item text, but if you do so, you should do so sparingly. One common use of embedded HTML in menu items is to include images via the HTML <img> tag. See FAQ #2 for further details. Embedded images may also have a rollover effect. See the setup instructions for further information on this.

In HierMenus versions prior to version 6, it was common to embed HTML in menu item text to apply specific font sizes to menu items (or font sizes other than points), text alignment of menu item content (such as <center>), or style sheet based styling of menu items. Each of these possibilities is now handled natively by HierMenus, so such uses of embedded HTML are no longer necessary (and are no longer recommended). In fact, one particular case--that of aligning text using embedded HTML alignment directives--will no longer work properly in all situations and all browsers (especially Netscape 4). Use the TextAlign parameter for this, instead.

Examples:
// Ok:
DisplayText:"Products",
DisplayText:"Widgets &amp;<br />Sprockets",  // Embedded HTML
DisplayText:"President's Address",
DisplayText:"<img src='m1.gif' width='80' height='20' alt='M. 1' />",
   // Note: ALWAYS include height/width in 
   // embedded image declarations!
DisplayText:prd+" Menu",
   // concatenate the user defined variable 
   // prd to  Menu. 

// Incorrect:
DisplayText:Products,   // strings must be quoted
DisplayText:'prd+" Menu"',
    // no quoted expressions
Default:
null

See Also:
TextAlign, Using Classes 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
Intel PDF: Virtualization Delivers Data Center Efficiency
Intel eBook: Managing the Evolving Data Center
Microsoft Article: BitLocker Brings Encryption to Windows Server 2008
Symantec eBook: The Guide to E-Mail Archiving and Management
Microsoft Article: RODCs Transform Branch Office Security
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
Avaya Article: Advancing the State of the Art in Customer Service
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Avaya Article: Avaya AE Services Provide Rapid Telephony Integration with Facebook
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Seminar: Efficiencies in Hardware/Software Virtualization
HP Webcast: Disaster Recovery Planning
Go Parallel Video: Performance and Threading Tools for Game Developers
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
IBM TCO eKIT: Your IT Budget is Under Attack, Get in Control
IBM Energy Efficiency eKIT: Learn How to Reduce Costs
30-Day Trial: SPAMfighter Exchange Module
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
Microsoft Article: Silverlight Streaming--Free Video Hosting for All
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
HP Demo: StorageWorks EVA4400
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/displaytext.html