We are providing HierMenus to you at no cost. HierMenus code requires a confirmed membership with internet.com. Please register by clicking here and come back soon to download your free copy of HeirMenus code.
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

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / faq / faq 7

Frequently Asked Question #7

Question: Can I set the user's font-size to a different value depending on the browser they're using?

Answer: Yes. This and many other browser-specific settings are made possible by virtue of the fact that the HM Parameter settings are interpreted client-side, directly by the browser itself; thus you can inject any JavaScript logic into the setting of the parameters to be interpreted by the browser. One common method of doing this is by way of JavaScript's conditional operator; instructions for using the conditional operator with HM parameters can be found in Bulletin 4.

The bulletin referenced above was written specifically for HierMenus 4/5 use; however, the techniques described apply equally to the new configuration file layout of HierMenus version 6. For example, where you would have made this assignment in HierMenus 4/5:

HM_GL_FontSize=(HM_NS4&&HM_Mac)?"12":"10";

You would now include the expression within the configuration file like so:

HM_f_UpdateDefaults({
   FontSize:(HM_NS4&&HM_Mac)?"12pt":"10pt"
});

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/faq/faq7.html