Recent Questions Two State Tree Java
Q: Currently the links of javascript tab control open in a _blank browser, how do I change this?
A: You should set the following parameter:
var bitemTarget = "_self";
You can set it using Deluxe Tuner. You can find this parameter in theTab-Mode section.
Q: IHow can i make that the background-color will be standing behind the click in this part of dhtml menu slide?
A: JavaScript Tree Menu has only two states normal and mouseover, but
you can highlight menu items by default in two ways:
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<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>
<script type="text/javascript"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
You can find more info here:
http://www.deluxe-menu.com/highlighted-items-sample.htmlQ: Still having trouble with placing the javascript window menu on a fixed position on firefox. So far its only at my testpage. The "Trial Version"-Button however stays at the correct place while the javascript window menu itself moves down if you scroll down... I hope that is fixed in the full version??
A: Now you're using floating feature for the javascript window menu:
//--- Floatable Menu
var floatable=1;
var floatIterations=3;
var floatableX=1;
var floatableY=1;
var floatableDX=15;
var floatableDY=15;
If you don't want to use it you should set:
var floatable=0;
Q: We are evaluating your product Javascript/DHTML 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