Recent Questions Treeview Javascript Html Code
Q: I am using the deluxe tree menu but i am facing problem while using ajax
so can you please guide me how can i use the ajax functionality for the dhtml tree..
A: To enable AJAX Tree Menu use the following menu parameters:
var tajax=1; // enables AJAX technology support
Each .js file must contain menuItems variable for the submenu in the following format:
var tmenuItems = [
[text, link, icon1, icon2, icon2, tip, target, itemStyle, submenuStyle, jsFileName],
];
Where jsFileName - .js filename on the server that contains tmenuItems variable for the submenu.
More info you'll find here:
http://deluxe-tree.com/ajax-menu-loading-sample.html
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 JavaScript Tree 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: I am using cross frame menu dropdown. I have three frames: Top, Left and main (middle).
I am using the script and data from your sample file; it works fine. Only problem is submenu is offset to the right. It does not show up exactly down below the top menu.
What could be the problem?
A: JavaScript Tree Menu doesn't work correctly (incorrect submenu position) if youhave complex frame structure.
The problem is in a structure of your frameset.
Mozilla browsers can't determine absolute coordinates for a frame, so submenus drop down with an offset.
You should create, for example, the following frameset structure:
--|------------
| menu
--|------------
|
| submenus
|
Now a top row has 2 columns and all browsers can determine a width of the 1st column in the second row.
You should write init function in the following way in that case:
dm_initFrame("mainframe",1,3,0);
Q: Shall I have to call the main egine file of the javascript menu maker - dmenu.js twice if I want to install two menus on the page.
The second script:
<script type="text/javascript" src="datatopnav.files/dmenu.js"></script>
Is for the top navigation menu, the datahscounseling is for the side menu. If I delete that line won't my top navigation be gone?
A: No, when you have several menus on the same page you should calldmenu.js file only once and then call several data files.
You should install the menus in the following way:
<head>
...
<noscript><a href=http://deluxe-menu.com/>Javascript Menu Maker by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "datahscounseling.files/";</script>
<script type="text/javascript" src="datahscounseling.files/dmenu.js"></script>
<script type="text/javascript" src="datatopnav.files/dmenu.js"></script>
<!-- (c) 2007, http://deluxe-menu.com -->
...
</head>
<body>
...
<TD height=25 colSpan=3 class=style1>
<script type="text/javascript" src="datatopnav.js"></script></TD>
...
<td width="180" height="307" rowspan="2" valign="top" bgcolor="ffffff"><div align="left">
<script type="text/javascript" src="datahscounseling.js"></script></DIV>
...
</body>
Both menu will work correctly in that case.
See the example I've sent you. It works fine.
You can find more info about installation of several menus on thesingle page:
http://deluxe-menu.com/installation-info.html