spacer

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


home / experts / dhtml / column62

Developer News
Metasploit 3.2 Offers More 'Evil Deeds'
'Thank You Apple. Seriously.'
The Buzz: BlackBerry App Store Seen Next
Logo

Hiermenus Go Forth, XXVI:
Version 4.2 - The Complete Script (Full-Window)



The New Parameters

HM4.2 introduces seven new parameter variables that can be set either as global (HM_GL_xxxxx in HM_Loader.js) or page-specific (HM_PG_xxxxx in your page.)

HM_xx_ScrollEnabled = true;
HM_xx_ScrollBarHeight = 14;
HM_xx_ScrollBarColor = "lightgrey";
HM_xx_ScrollImgSrcTop = "HM_More_black_top.gif";
HM_xx_ScrollImgSrcBot = "HM_More_black_bot.gif";
HM_xx_ScrollImgWidth = 9;
HM_xx_ScrollImgHeight = 5;

HM_xx_ScrollEnabled

This is the most important parameter, naturally. If omitted menus will not be scroll-enabled. Setting it to true will enable the new scrolling functionality.

Use it sparingly, and only if you believe the menus you have created truly warrant scrolling. Otherwise, scroll elements may be created unnecessarily, raising the script overhead. For example a very short menu will sprout scroll elements when a user resizes the browser window to a very small size for whatever reason, if HM_xx_ScrollEnabled is true. This may be unwanted behavior.

HM_xx_ScrollBarHeight

The vertical height of the scroll elements.
The image will automatically be centered, both horizontally and vertically.

HM_xx_ScrollBarColor

Any valid color value can be used for the background. You can, as with all parameters use JS expressions or variables. For example to have the scrollbar the same color as the highlight color of your menu items, you can use the following syntax:

HM_xx_ScrollBarColor = HM_xx_BGColorOver;

HM_xx_ScrollImgSrcTop

The src of the image to display in the top scroll element:

HM_xx_ScrollImgSrcBot

The src of the image to display in the bottom scroll element:

HM_xx_ScrollImgWidth

The width of the image displayed in the scroll elements. This value is used to position the image horizontally:

HM_xx_ScrollImgHeight

The height of the image displayed in the scroll elements. This value is used to position the image vertically:



The HM4.2 download includes several images you can use. A list of these can be found on the next page.


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
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
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 >
Popular JavaScript Framework Libraries: An Overview · Controllers: Programming Application Logic - Part 2 · How to Use JavaScript to Validate Form Data
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Choosing the Right Online Backup Provider · Mother Avaya Nurtures Her Technology Partners · Software as a Service a Winning Model for Hotspot Provider

All Rights Reserved. Legal Notices.
Created: February 04, 2002
Revised: February 04, 2002

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