Recent Questions Website Templates Tree Menu
Q: Is there a way to capture user click event just like the one in the javascript menu sliding?
A: Unfortunately, you can't assign onmouseover/onClick/onContextMenu event to each item.
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
];
Q: How I can control the displayed items by writing my own security control logics?
Can the developer version allows me to edit all the generated java scripts for menu?
A: You can use API functions and control the displayed items.
Find more info here:
http://deluxe-menu.com/functions-info.html
> Can the developer version allows me to edit all> the generated java scripts for menu?
Script in Single, Multiple and Developer licenses is obfuscated, youcannot modify it.
If you want to modify the java scripts for menu you should buy JavaScript Tree Menu & Javascript/DHTML Tree & Deluxe TabsDeveloper License with Javascript Source Code.
Q: How do your users normally indicate which page a web visitor is on, by using your navigation bar submenu?
A: JavaScript Tree Menu has only two states normal and mouseover.
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, for
example:
<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.
Q: It looks as though I should be able to have an icon before each item in the sub-menu in javascript tabs, but I don't seem to be able to get thisto work.
Could you please tell me how to fix this?
A: You can use icons before each item in the sub-menu.
You should use the following parameters:
- set icon in the "Item Parameters" window.
- set the width and height of this icon
var biconWidth=7;
var biconHeight=7;
var biconAlign="left";
- set, for example
var bbeforeItemSpace=15;
var bsmItemAlign="left";