Recent Questions Simple Css Tree
Q: I didn't specify link for the item, but the problem is the mouse cursorchanges to a hand, when the item of the web navigation bar (not link) is mouse over.
A: Unfortunately there is no way to change cursor for items with links and without links.
You can try to use <a> tag inside the text field:
["<a href="http://domain.com/index.html">test</a>","",""]
Set default cursor:
var titemCursor="default";
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, JavaScript Tree Menu doesn't have such a feature.
You can onlyset it's color. You cannot set the font of menu item bold when selected.
You should addthe 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>","", "", "", "", "", "", "", "", ],
Q: I am trying to get my submenu to be all black along with the main menu item that I am hovering over.
But I cannot do it.
A: Now you have
["|About Us","About_Us", , , ,"Tip Text" , , , ,"0"],
it is not right. You should write
["|About Us","About_Us", , ,"Tip Text", , ,"0",],
Q: In DHTML Menu, is possible call javascript when click on an item without close the javascript pop up menu ??
I would update a content subitem with ajax when click on a item, but when click the mouse on the item the menu is closed.
I can't use the showByClick property because i use popupMode=1 .
Can you help me ???
A: In JavaScript Tree Menu you can use the following parameter:
Parameter: smHideOnClick
hides submenus on click
0 - disabled, 1 - enabled.
var smHideOnClick=0;