Recent Questions Tabbed Treeview Javascript
Q: I attached on Image (Screen shot). Please observe that I marked with black color line. How can I adjust the menu so scroll bar and menu should end with same line. Why Scroll occupying more space than menu item. Please assist me to remove that extra space.
A: Try to set var tmenuHeight="auto";
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: Can I add the value of the parameter to the link where I want my application to go when I active a submenu in the menu script?
A: Actually you can add php code inside menu links.
If you define your parameter in .js file you should write yourlinks in the following way, for example:
<?
....
$key = 123456;
....
?>
["Home","www.domain.com/home.php?key=<? echo $key ?>", "", "", "", "", "", "", "", ],
If you define your key parameter in the php file you should move your
menuItems into your php page directly:
<?
....
$key = 123456;
....
?>
<script type="text/javascript">
var tmenuItems = [
['JavaScript Tree Menu','http://deluxe-menu.com','icon.gif',,,,,],
['Javascript/DHTML Tree','http://deluxe-tree.com','icon.gif',,'New!',,,],
['Deluxe Tabs','http://deluxe-tabs.com','icon.gif',,'New!',,,],
["Home","www.domain.com/home.php?key=<? echo $key ?>", "", "", "", "", "", "", "", ],
];
dm_init();
</script>
Q: My client wants their drop down navigation to lock into place when someone visits a page. Is there a way to do this?
Right now it disappears when you click the link.
A: I suppose that you're saying about submenus.
Try to set the pressed item using the following API function:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion, parentOpen)
Sets a current pressed item.
menuInd - index of a dynamic menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
parentOpen = true/false - open all submenus to show the selected item
See example here:
http://deluxe-menu.com/highlighted-items-sample.html
Try to click 'Highlight "Product Info/Installation/Description ofFiles" item'.
You can also try to use the following parameter:
var smHidePause = 1000;
A delay (in ms) between mouse is moved from submenu and its closing.
You can make submenus to stay visible till you click outside the menu or scroll your page.
To enable this feature you should set this parameter in the following way: var smHidePause = -1;