Recent Questions
Q: Another glitch is that the first item on the sidemenu stays dark blue -
even when the mouse is off of it.
A: In your code now you have:
var pressedItem=0;
Please, set this parameter in the data.js file:
var pressedItem=-2;
Q: I would like when I click on what ever link of the php dhtml menu that the visited link stay in a different color and with a different background
A: Deluxe Tree doesn't save a presseditem 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 functionfunction dtreet_ext_expandItem (itemID, expand)
Q: Does your product generate the page code or is t a dll I have to use? Reason I ask is because we store our menu stuff with image references in a db. If your product outputs code for the menu, then I can use that and in my own code I can place/substitute values and work with it from there.
A: We have an .exe file - Deluxe tuner.
It generates .js files with menu parameters.
You can also export your menu to .html file.
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- Deluxe Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [ // here you generate items using server-side scripts (php, asp, vb, etc.) ];
</script>
Unfortunately we don't have examples with ASP and SQL.
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html Q: Can you tell me how I can position my menu-tree with a relative position and make it floatable at the same time?
A: Unfortunately now it is not possible. Your menu will float withabsolute position only.