|
|
Would it be possible to introduce more font decoration to the mouseover variables for the horizontal navigation?
Return to Recent Questions
Q:
Would it be possible to introduce more font decoration options to the mouseover variables for the horizontal navigation?
I would like to add bold as a mouseover font decoration, but obviously this is not possible at the moment.
A:
Unfortunately, Deluxe Menu doesn't have such a feature. You can only
set it's color. You cannot set the font of menu item bold when selected.
You should add
the following code in your data file:
function changeFont(obj, over)
{
obj.style.fontWeight = over ? 'bold' : 'normal';
obj.style.fontSize = over ? '13px' : '12px'; // You can not use this line
}
var menuItems = [
["<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Security</div>","", "", "", "", "", "", "", "", ],
["<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Ease of Access</div>","", "", "", "", "", "", "", "", ],
["|<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Internet Options</div>","", "", "", "", "", "", "", "", ],
["|<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Windows Firewall</div>","", "", "", "", "", "", "", "", ],
["<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Network and Internet</div>","", "", "", "", "", "", "", "", ],
["<div onMouseOver='changeFont(this, 1)' onMouseOut='changeFont(this, 0)'>Hardware</div>","", "", "", "", "", "", "", "", ],
Return to Recent Questions
Related:
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 31, 2006 - Java script executes when the link is clicked it is not the html drop down link itself.
- Nov 25, 2006 - If a user selects vertical menu in the upper frame he get the menu that is associated with...
- Dec 12, 2006 - I want that menu css recognize when user has moused off the menu, and then disappear.
- Dec 25, 2006 - The mouseover menu javascript will continue to expand horizontally.
- Dec 29, 2006 - How can I open sliding drop down menu on simple link mouse over?
- Jan 15, 2007 - Is there a way to show a link in the menu drop down if there is no JavaScript?
- Feb 01, 2007 - Can I use this CSS menu to create pulldown menus on a Mac (Mac OSX).
- Feb 17, 2007 - How I can edit/specify the color schemes on the Glass style tabs in html?
- March 05, 2007 - When I set the AjaxCount to 0, my JavaScript Menus don't pop out anymore.
|