Recent Questions Html Tree Js
Q: I have not seen anything that can help me in the question list and would like to ask how to have a mouseover drop down menu closed by default. I know that by preceding it with a '+' has it open and had assumed that removing it would close it, but it does not seem to do this.
Where in the scripts do I need to change this value and will this be updated in the future?
A: You should delete "+" signs in the top items and set the followingparameter:
var texpanded=0;
Q: I recently received a non-profit license for your product, and after I installed it and the 'trial version' label disappeared, two of my javascript menu frames started appearing "up", instead of "down" which is preferred.
The 'enrollment center' and the 'physician center' work fine. The 'volunteer center' and 'donor center' used to work correctly (down) before I updated to the non-profit license, but now they appear "up".
If you could please help me that would be great.
A: You should set the following parameter:
var subMenuVAlign="top";
Q: What I would like to see is the ability to have a base site navigation menu with all the definitional entries (size, locations, icons, etc.) defined but all the menuitems be called from an Ajax file.
A: You cannot use ajax submenus for the top items.
But you can use several .js file, for example:
params.js //file with all menu parameters (size, locations, icons, etc.)
all code before
var menuItems = [
...
];
dm_init();
data_ajax1.js //data files for ajax submenus
data_ajax2.js
data_ajax3.js
...
main_data.js - data file with the following code:
var menuItems = [
["Item 1","", "", "", "", "", "0", "0", "data_ajax1.js", "", "", ],
["Item 2","", "", "", "", "", "0", "0", "data_ajax2.js", "", "", ],
["Item 3","", "", "", "", "", "0", "0", "data_ajax3.js", "", "", ],
["Item 4","", "", "", "", "", "0", "0", "data_ajax4.js", "", "", ],
];
dm_init();
You can also place this code into your html page directly (in the place where you want tohave a menu):
<script type="text/javascript">
var menuItems = [
["Item 1","", "", "", "", "", "0", "0", "data_ajax1.js", "", "", ],
["Item 2","", "", "", "", "", "0", "0", "data_ajax2.js", "", "", ],
["Item 3","", "", "", "", "", "0", "0", "data_ajax3.js", "", "", ],
["Item 4","", "", "", "", "", "0", "0", "data_ajax4.js", "", "", ],
];
dm_init();
Q: I downloaded the trial versionto try and it seems like it should do the horizontal sub menus, but not sure what parameter controls it. Can you help?? The effect I am looking for is this:
About Us Product Contact
Widget 1 Widget 2 Widget 3
Hope you can help!
A: You should use the following parameter:
var smViewType=0;