Recent Questions
Q: I am in the early stages of desgning a website for a client and am looking for a particular menu script.
I came across your site ad am impressed with the options. However, I am haivng trouble finding something that will do what the client is looking for.
With a horizontal menu bar across the top, a drop down sub-menu appears but the menu items appear side by side insdie of in a column.
I was hopeing that one of your options might be able to handle this type of menu but I do not see that there is a script for it. Is that true or is it possible to achieve this example in a setting in one of your scripts.
A: You can create such menu with Deluxe Menu.
Please, see the attached example.
You should set this parameter:
var smOrientation=1;
You can create any style of the menu.
Please, try the trial version, http://deluxe-menu.com/deluxe-menu.zip
Q: Are there the possibility to have the dhtml menu code into an external file so that nothing of the dhtml menu code will appear on my html code?
A: Menu has data.js (by default) data file with menu parameters, itemsand styles and 9 engine files.
You should only call two .js files on your html page.
See more info here:
http://deluxe-menu.com/description-of-files-info.html
http://deluxe-menu.com/installation-info.html
Q: Is there any way to have the browser reset the horizontal tree view to allcollapsed each time the browser is reopened?
A: You should set the following parameter in that case:
var tsaveState=0;Q: I want to use
function dtreet_ext_userRightClick(itemID) {
alert(itemID[0]); ???
return false;
}
But how do I refer to tmenuItems array using itemID in the javascript?
For example, if I want to pop a link text, should I use alert(itemID[0]))?
It doesn't work.
Please let me know how I refer to the menu.
A: You should use the following function to get item's info:
dtreet_ext_getItemParams (0, itemID);
For example:
<script type="text/javascript">
function dtreet_ext_userRightClick(itemID)
{ var link = [];
link = dtreet_ext_getItemParams (0, itemID);
//Returns item parameters in the array:
// [item_id, index_within_submenu, parentID, level, has_child, child_count, expanded, text, link, target, tip, align, icons, hidden, disabled, visible]
alert(link[7]);
return false;
}
</script>