Recent Questions Yahoo Yui Dynamic Tree Highlight
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: It's me again, I got the buttons to show... Now, looking to get the floating feature to work in the java script menu.
A: To enable floating feature you should set the following parameter:
var floatable=1;
Check also that you have dmenu_add.js file in the same folder withdmenu.js file.
Q: I have an interest in purchasing your product but wanted to ask a question to see if it would satisfy my needs. The menu samples you have are all horizontal, can your menu go vertical?
A: To create vertical menu you should set the following parameter:
var isHorizontal=0;
Please, try the trial version at first.
Q: I should mean the font style that I failed to update after I have selected and assign font as shown in the pic above.
Step 1. using the sample data file
Step 2. select the font section of the Parameter Step3. click the font style and a window box will show up all the installed fonts
Step4. the default font is Tahoma, so I change it Times Roman
Step5. select Times Roman and click the Assign Font button There is no response with or without option Auto
The style font box did not update nor the preview
A: You should click OK button, not "Assign Font" button when you choosethe font. It is possible that you have to click "Update" button on the"Preview" window.