Recent Questions Navnath Treeview
Q: I'm interesting in dhtml menue ability to display a different color word on a menu item when the site is on that selected page
A: The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
You can set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem. You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: How i can insert any html code in dropdown menu?
A: You are able to paste any html code within items.
So you can paste a form too.
For example:
var menuItems = [
...
["||<nobr><FORM method=GET action='http://www.google.com/custom'><input name='as_q'
value='searchthe web' size=15 style='font-size:10'> <INPUT type=hidden name=cof
value='LW:144;L:http://domain.edu/images/sulogo.gif;LH:45;AH:center;GL:0;S:http://domain.edu;AWFID:e01cb67b8afe383e;'></form></nobr>","", "images/icons/search.gif", "", "", "", "", "2", "", "", "",],
Q: I purchased your product yesterday and was quite impressed, but I am having a bit of aproblem with my submenuitems. In the general menu properties there is a "Global" vartitemHeight = 22; My problem is that I would like my upper level of my dhtml tree to have one itemheight and my submenuitems to have a smaller height.Is this possible?
A: In the XP Style
var tXPStyle=1;
the item's height for the top items and submenus will be different.
If you want to use
var tXPStyle=0;
you can set ite's height for the submenus:
var titemHeight=16;
And for other items use the blank icon with the height you want to have for the upper
level of your menu items.
Q: Can title attributes be added to a drop down menu html code?
A: Yes you can add titles in drop down menu. See menuItems parameter:
var menuItems = [
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
...
];
["Product Info","", "deluxe-menu.files/icon1.gif", "deluxe-menu.files/icon1o.gif", "TITLE", "", "", "", "", "", "", ],