|
|
I would like to add bold as a drop down menu font decoration. Is it possible?
Return to Recent Questions
Q:
Would it be possible to introduce more font
decoration options to the mouse over variables, 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 drop down 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:
- March 25, 2009 - My drop down menu is fixed like a rock. It doesn't float.
- Apr 11, 2009 - I cannot see the shadow on the top items in my drop down menu example.
- Apr 28, 2009 - There is some bug with your drop down menu and Page Zoom function in IE7.
- May 16, 2009 - The alignment of the submenus is not correct in my drop down menu.
- Jun 01, 2009 - Is there any functionality for tree drop down menu to show/hide specific branches?
- Jun 19, 2009 - Will this drop down menu rollout from an Iframe over a regular frame
- Jul 06, 2009 - I can not find in DHTML Tuner how to make drop down menu multi-level or multi-column
- Jul 24, 2009 - I would like to use this drop down menu in a page containing two iFrames.
- Aug 09, 2009 - Is it possible to keep my floating drop down menu in the centre of the page like <centre></centre>
- Aug 27, 2009 - Is this drop down menu compatible under Linux?Drop down menu Linux Firefox Support
- Sep 13, 2009 - There is a gray line under the drop down menu images that makes it look broken.
|