Recent Questions Folder Tree Canvas Javascript
Q: I am trying to convert the menu from the old Apycom menu to the new Deluxe menu and getting an error
Error: 'floatable' is undefined
A: Try to add the following lines into your data file:
// -- Deluxe Tuner Style Names
var itemStylesNames=["Style",];
var menuStylesNames=["Style",];
// -- End of Deluxe Tuner Style Names
Q: I am testing it on my website.
I have under the submenu 'Generalites" two links "Presentation" and "Formulaires"
I would like when I click on what ever link on the expandable javascript menu that the visited link stay in a different color and with a different background.
For exemple:
If I click on link Presentation then this link will become in a different color and also its background.
Then If I click on Formulaire the prevous link is reset and the Formulaire link appears in a differemt color and its backgroud. How should I do it ?
A: Javascript/DHTML Tree doesn't save a pressed
item as it saves a tree state. It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
Please, see here:
http://deluxe-tree.com/functions-info.html
You can also set
var tsaveState = 1;
More info you can find
http://deluxe-tree.com/data-samples/tree-menuxp-save-state.htm
To expand specific items you should use API function
function dtreet_ext_expandItem (itemID, expand)
Q: The only one I wanted to change is that the colors of all items in the cool dhtml menu should be the same.
I tried to change that, but I did not find a solution.
A: You should change Individual style.
var tXPStyles = [
["tXPTitleBackColor=#AFB1C3","tXPTitleBackImg=data-quelle.files/xptitle_s.gif",
"tXPExpandBtn=data-quelle.files/right1.gif,data-quelle.files/right1.gif,
data-quelle.files/right1.gif,data-quelle.files/right1.gif"],
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.