Recent Questions
Q: We are evaluating your product Deluxe Tree-menu.
 We want that when user clicks an item, then load other page. This other page also conatains the tree menu. But, we are looking for how we have to do for the previously clicked menu items in java (in the previous page) remains highlighted for inform to user what is his current page/selection.
 We know toggleMode feature, but after the second page loads, the clicked item does not remain higlighted.
 It is possible to achieve this behavior with your product??? 
A:  You should use API functions in that case
function dtreet_ext_expandItem (itemID, expand)
function dtreet_ext_setPressedItem (menuInd, itemID)
See more info about API functions:
http://deluxe-tree.com/functions-info.html
See the samples:
http://deluxe-tree.com/dynamic-drop-down-menu-sample.html
and
http://deluxe-tree.com/highlight-selected-menu-item-sample.html
Q: I have to pass dynamic value from the link when the user click the mouseover menu. 
A: Actually you can use your own Javascript code instead standard links. For example:
   var menuItems = [
 ["text", "javascript:your_code_here"]
 ]; 
 or
   var menuitems = [
 ["<div onClick='your_code_here'>item text</div>", ""]
 ];
 
Q:  1) is it possible to have multiple(different) images, popup menus?
  2) Can it Automatically popup instead of Left click?
  Would you show me How?
   3) What is: menuInd - index of the javascript menu script on a page, >= 0 ? 
  Could you give more explanation? 
A: 	 >  1) is it possible to have multiple(different) images, popup menus?
Yes, you can use any number of popup menus on your page.
>  2) Can it Automatically popup instead of Left click?
>  Would you show me How?
You can use onMouseOver event instead of onClick or onContextMenu events in that case.
> 3) What is: menuInd - index of the javascript menu script on a page, >= 0 ?
Each menu has ID. The ID's number starts with 0.
So, when you have several data files on your page you have such ID's:
<script type="text/javascript" language="JavaScript1.2" src="menu-top.js"></script> // ID - 0 //standard menu (doesn't use popup feature)
<script type="text/javascript" language="JavaScript1.2" src="source_pop.js"></script> // ID - 1
<script type="text/javascript" language="JavaScript1.2" src="source_pop1.js"></script> // ID - 2
<script type="text/javascript" language="JavaScript1.2" src="source_pop2.js"></script> // ID - 3
<script type="text/javascript" language="JavaScript1.2" src="source_pop3.js"></script> // ID - 4
and so on.
If you want to have different Popup menus (there color, item, text,font and so on) you should create different .js files with yourparameters. And call them from your page, for example:
<script type="text/javascript" language="JavaScript1.2" src="menu-top.js"></script>
<SCRIPT language=JavaScript1.2 src="source_pop.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript1.2 src="source_pop1.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript1.2 src="source_pop2.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript1.2 src="source_pop3.js" type=text/javascript></SCRIPT>
If you have different item text only you can use one
<SCRIPT language=JavaScript1.2 src="source_pop.js" type=text/javascript></SCRIPT>
file. But you should delete the following code:
  var menuItems = [
 ["Next","testlink.htm"],
 ["Prev","testlink.htm"],
 ["Close","testlink.htm"],
];
dm_init();
and move it to the html page:
<body>
...
<SCRIPT language=JavaScript1.2 src="source_pop.js" type=text/javascript></SCRIPT>
<script type="text/javascript"> //first popup menu ID - 1
  var menuItems = [
 ["Next","testlink.htm"],
 ["Prev","testlink.htm"],
 ["Close","testlink.htm"],
];
dm_init();
</SCRIPT>
<script type="text/javascript"> //second popup menu ID - 2
  var menuItems = [
 ["Text","testlink.htm"],
 ["Text1","testlink.htm"],
 ["Text2","testlink.htm"],
];
dm_init();
</SCRIPT>
<script type="text/javascript"> //third popup menu ID - 3
  var menuItems = [
 ["New_Text","testlink.htm"],
 ["New_Text1","testlink.htm"],
 ["New_Text2","testlink.htm"],
];
dm_init();
</SCRIPT>
<script type="text/javascript"> //fourth popup menu ID - 4
  var menuItems = [
 ["New","testlink.htm"],
 ["New","testlink.htm"],
 ["New","testlink.htm"],
];
dm_init();
</SCRIPT>
<img src="testimage.gif" width=200 onClick="return dm_popup(1, 1000, event);" style="cursor: hand;">
<img src="testimage.gif" width=200 onClick="return dm_popup(2, 1000, event);" style="cursor: hand;">
<img src="testimage.gif" width=200 onClick="return dm_popup(3, 1000, event);" style="cursor: hand;">
<img src="testimage.gif" width=200 onClick="return dm_popup(4, 1000, event);" style="cursor: hand;">
</body>Q: How do I set just one drop down menu hyperlink to open in a new window when the rest is set to _self?
A: You can set item's target for each item individually:
 ["Home","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "_blank", "", "", "", ],