|
|
I would like to add bold as a dhtml javascript menu font decoration. Is it possible?
Return to Recent Questions
Q:
Would it be possible at some point to introduce more font
decoration options to the mouseover states in the dhtml javascript menu, I would like to add
bold as a mouseover font decoration, but obviously this is not
possible at the moment.
A:
Unfortunately, DHTML Menu doesn't have such a feature. You can only
set it's color. You cannot set the font of dhtml javascript menu item bold when selected.
You can use 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:
- March 16, 2009 - How can I change item width in the Vista templates in the dhtml javascript menu?
- Apr 03, 2009 - Our submenus don't appear alignment to the toplevel dhtml javascript menu.
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the dhtml javascript menu.
- May 08, 2009 - The dhtml javascript menu works on our integration system but doen't work on the production system.
- May 24, 2009 - Is it possible to have wrap in the middle of the text in the dhtml javascript menu?
- Jun 11, 2009 - Can I keep a submenu shown even when my mouse pointer is NOT over dhtml javascript menu
- Jun 28, 2009 - I have problem with our characters of iso-8859-2 charset in the dhtml javascript menu.
- Jul 16, 2009 - Why submenu of dhtml javascript menu pop-down not OVER the other object (frame)?
- Aug 01, 2009 - The copy/paste and the CTRL + C/V & Insert keys don't seem to work in dhtml javascript menu.
- Aug 19, 2009 - How do I make the css submenu of my dhtml javascript menu appear in the correct frame?
- Sep 05, 2009 - I want to add a Flash icon with sound next to the dhtml javascript menu items...
|