Recent Questions
Q: I'm trying to have two separate menus on my web page. I read what was written in your FAQs about multiple menus, but the response was too cryptic.
It seems to me that if the dmWorkPath for each menu is declared separately, then the menus should work separately (with no interaction). I did not find this to be the case.
Do you have more complete information about creating multiple menus on one page? I would like to understand the issues.
A: David, if you want to create multiple menus on one page you should only call several data.js files with the menu.
For example you can see templates.html. You can find this file in the trial package.
Q: I can not figure out how you put the arrow that shows there's more information in the php drop down menu?
I tried and tried to figure it out where you add this .gif file?
A: You should set the following parameters in your data.js file:
var arrowImageMain=["deluxe-menu.files/arrowmain.gif","deluxe-menu.files/arrowmaino.gif"];
//Normal and mouseover arrow images for top-level items.
var arrowImageSub=["deluxe-menu.files/arrowsub.gif","deluxe-menu.files/arrowsubo.gif"];
// Normal and mouseover arrow images for submenu items.
You can set these parameters in Deluxe Tuner also:
Open 'Icons' section in the main window and set var arrowImageMain and var arrowImageSubparameters.
Q: How to modify data.js in deluxe menu to change the font color if the user click on css pull down menu.
Expl. If the user click on 'Webdesign' and then on 'Thema Webdesign' the color dosn't change to #333. So the user don't now, where is it. Please test it on www.media-design.ch. Thank!
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)
<script type="text/javascript">
var i = <?php echo $selitem; ?>;
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
You should define selitem using server side script.
Q: Is it possible to make on top of the css tree menu 2 extra buttons:
* Expand all
* Collapse all
Which command do I use???
A: Tree Menu doesn't have such a feature now.
You can write your own function based on the following API functions:
function dtreet_ext_showItem (itemID, visibility)
function dtreet_ext_expandItem (itemID, expand)