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
Promotional Products
KVM Switches
KVM over IP
Best Price
Promotional Golf
Imprinted Gifts
Corporate Awards
Free Business Cards
Web Design
Logo Design
Promote Your Website
Memory Upgrades
PDA Phones & Cases
Corporate Gifts

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

MenuBackgroundImage

Description:
The src, i.e., server location, of a background image that should be applied to this menu.

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

Applies To:
Menus.

Browser Compatibility:
MenuBackgroundImage is not supported in Netscape 6.0x. In Netscape 4.x, using a MenuBackgroundImage will render the menu's border meaningless, since the image will cover the border. Some problems have also been noted in Safari background images.

Comments:
The configuration parameter ImageDir has no effect on the setting for MenuBackgroundImage. Rather, HierMenus only looks exactly to the URL location you specify in MenuBackgroundImage for the location of the image graphic itself.

Include only the actual server location (URL) of the graphic in MenuBackgroundImage. You can specify additional parameters, such as repeat-x, etc. in MenuBackgroundProperties.

In scrolling menus, you can select to have the menu's background image scroll with the menu, or remain in a fixed location. Use the ScrollBackgroundImage parameter to make this distinction.

When using background images, you will generally want to set your background colors (MenuBGColor and BGColor) to transparent, to ensure that the item and menu background colors do not overlay the menu's background image. Another tip is to set ScrollBackgroundImage to true, set BGColor to transparent, and then specify a valid MenuBGColor. When set this way, the background image will overlay the MenuBGColor. Those with image support in their browsers will see the image as you intended, while those without will see the MenuBGColor as the default menu item background.

As noted above, some browsers will not support image backgrounds at all, and therefore their menu text displays may not be appropriate. Creating a menu where the readability of the text is dependent on a menu background image is not recommended. You can, however, use the built in HM variable HM_BackgroundSupport in your configuration file to supply alternate color schemes for those menus that depend on background images:

BGColor:(HM_BackgroundSuppport)?"transparent":"black",
Note that HM_BackgroundSupport only indicates whether HM will support the application of background images to menus in the user's browser. It does not indicate whether or not the user allows images to be displayed within their browser.

Examples:
// Ok:
MenuBackgroundImage:"MenuBack.gif",
MenuBackgroundImage:"http://myserver.com/myHMImages/MenuBack.gif",
MenuBackgroundImage:null,
MenuBackgroundImage:(window.showBack)?"MenuBack.gif":null,
    // if the user defined variable "showBack" is true,
    // then use "MenuBack.gif"

// Incorrect:
MenuBackgroundImage:MenuBack.gif,      // Strings must be quoted
MenuBackgroundImage:"null",            // null must NOT be quoted
MenuBackgroundImage:'(window.showBack)?"MenuBack.gif":null', 
    // no quoted expressions
Default:
null

See Also:
MenuBackgroundProperties, ScrollBackgroundImage, ItemBackgroundImage, ItemBackgroundProperties



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 eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
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
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/reference/menubackgroundimage.html