Recent Questions Script Tree Menu Howto
Q: I have two question for now...
Where can I change the word "loading" during ajax is loading the submenu?????
Is state saving of javascript based tree just for the first level??? Does it works for the AJAX submenus?
The reason why I switch to treemenu is the possibility of state saving!
A: I've just checked your website and save state feature works fine for the ajax submenus.
Actually we've added this feature in v3.2.7 of Javascript/DHTML Tree.
http://deluxe-tree.com/whats-new-info.html
I see you changed the "Loading.." text inside the dtree_ajax.js file.Q: I have been working with on a site and I am kind stack using the program. I want to use the tree option but not all “buttons” need to have subcategories. For example:
Category 1
Sub-menu 1-1
Sub-menu 1-2
Sub-menu 1-3
Category 2
Sub-menu 2-1
Sub-menu 2-2
Sub-menu 2-3
Category 3
Category 4
When someone click on the “Category 1” or “Category 2”, I want them to see the sub-menus. However, when some click on “Category 3” or “Category 4”, I would like to have it open the appropriate page. How do I do this? This will make a lot easier because not all buttons need to have sub-menus… I hope that makes sense and you can help me on getting this done.
A: You cannot use links for the top items in XP Style only.
var tXPStyle=1;
but you can write:
["<a href='http://deluxe-menu.com'>Item 45</a>","", "", "", "", "", "", "", "", ],
Q: I have tried various different ways,I cannot get a separator image I have specified in the Separators section to display for the navigation-bar-menu. I have verified that the image exists, but still nothing.
A: To add a separator you should
//--- Separators
var separatorImage=""; //for subitems (top items in vertical menu)
var separatorWidth="100%";
var separatorHeight="3px";
var separatorAlignment="right";
var separatorVImage="separator.gif"; //for the top items (subitems items in vertical menu)
var separatorVWidth="100%";
var separatorVHeight="2px";
var separatorPadding="";
You can create separators using menuItems (you can do it in Deluxe
Tuner, use "Add separator" button), for example:
["||All Images","gallery_all.html", , , , "_self", , , , ],
["||-"],
["||Pricing & Ordering Info","gallery_pricing.html", , , ,"_self", , , , ],
Q: Please let us know how to select the font and background colors using the hexidecimal number?
We have another website and want to use the exact same color scheme.
We want to enter the number such as FF8080.
Hopefully, we can enter the hex numbers into this program.
A: You should write, for example, so:
var menuBackColor = "#FF8080";
var menuBorderColor = "#FF8080";
var itemBackColor = ["#FF8080","#FF8080"];
var itemBorderColor = ["#FF8080","#FF8080"];
var fontColor = ["#000000","#FFFFFF"];