|
|
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:
- Oct 31, 2006 - Java script executes when the link is clicked it is not the html drop down link itself.
- Dec 25, 2006 - The mouseover menu javascript will continue to expand horizontally.
- April 07, 2007 - I now have the need to introduce separators on the horizontal drop down menus.
- Dec 17, 2007 - I would like to add bold as a javascript mouseover menu font decoration. Is it possible?
- April 25, 2009 - I am still not understanding how to place the text content related to the selected java text menu tab?
- May 22, 2009 - I want the tabs java script horizontal menu to open when you mouse over them, not when you click. Is it possible to do this?
- August 30, 2010 - Is there any way to call a javascript function on mouseover from a menu item for a sub navigation bar?
- September 14, 2010 - I want that the font of an selected menupoint for the horizontal tree view is bold and red
- September 21, 2010 - I am having some trouble placing the cascading drop down menu in frontpage.
- October 31, 2010 - I have an image map of a graphic and I need to call my side navigation bar from an OnMouseOver in the image map�
- November 5, 2010 - How do I change the font style for menus to bold, but leave the sub-menus normal in the html navigation bar?
|