Recent Questions Html Css Tree Menu
Q: Is it possible to expand vertical collapse menu in a predefined way?
A: You can expand some items by default.
Add '+' sign before items text in that case:
["+Javascript/DHTML Tree: XP Style","", "deluxe-tree.files/xpicon1_s.gif", "", "", "XP Title Tip", "", "0", "", "", ],
["|Home","testlink.htm", "deluxe-tree.files/icon1_s.gif", "deluxe-tree.files/icon1_so.gif", "", "Home Page Tip", "", "", "", "data-new.js", ],
"Javascript/DHTML Tree: XP Style" item will be expanded by default in that case.
Use var texpanded=1; parameter to expand all menu items by default.
Use function dtreet_ext_expandItem (itemID, expand) API function to expand the specificmenu items dynamically:
http://deluxe-tree.com/functions-info.htmlQ: Now, I need your help in another question: I can set "tpressedFontColor" to have the font of the active item in the dhtml tree menu take this color.
How can I make the onmouseover - background ("titemBackImage" of the individual style set in the item parameters) of the menu item also be saved in the active, selected dhtml tree menu item? I need to build a menu with different background-images (shown on mouseover and when active) for each item, so I cannot set ONE "titemBackImage" that fits for all.
Thank you very much, Irene. And yes, I really love this product.
A: Unfortunately it is not possible now to set background color orbackground image for the selected state. Deluxe tree doesn't have sucha feature now.
But we'll try to add this feature in the next versions of Javascript/DHTML Tree.
Q: I contact you because this morning we have bought a single license of your deluxe tree menu for our web site www.roderstore.com All features of tree menu work good when I try it on local computer.
When I send the files on web site there is the problem that we must work on different directory : the script must be saved in a directory and the html page with menu inside is installed in another directory.
We can't save the script inside the directory of html pages because there are a lot of pages that call the tree menu, in different levels of path.
In the header of html page I have write the absolute path of script ( http://www.domain.com/menu/it/deluxe-menu.files/ ) and I have called the source of script with all absolute path.
The problem is that the tree javascript moving menu is visible, the function are OK ( expand and collapse are OK ) but the tree don't have the images !
I presume that the problem is the different directory of script and html page ?
What can we do ?
A: You can try to use absolute path to your images. To do it you shouldset the following javascript moving menu parameter:
var tpathPrefix_img="http://www.domain.com/menu/it/deluxe-menu.files/";
You can also send us a direct link to your website, so we can check it.
Q: I notice in your examples that your menus are horizontal and then drop down.
Is it possible to configure your javascript menu generator for vertical menus?
A: Yes, it is possible.
You should set the following parameter:
var isHorizontal=0;