|
|
I now wish to dynamically change the drop down menu in html parameters.
Return to Recent Questions
Q:
I now wish to dynamically change the drop down menu in html parameters. For this, I
have set the following parameters:
// Dynamic Menu
var dynamic=1;
1.Please send me the reference link for the dynamic menu commands available
(for javascript).
2.Now AFTER initialization, dm_init();, I wish to change the default var
itemTarget="Sub_Main";
How do I do that??
A:
You can find more info about API functions here:
http://deluxe-menu.com/functions-info.html
Unfortunately it is not possible to change drop down menu in html parameters (var ...)
after menu initialization.
So, there is no way to change
var itemTarget="Sub_Main";
But you can change target for each item individually (target
parameter in menuItems) using dm_ext_changeItem function.
var menuItems = [
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
...
];
Return to Recent Questions
Related:
- Aug 28, 2006 - Top menu in a 6x4 cell layout (effectively a rectangle)
- Aug 30, 2006 - Can all the java script be contained with in the html and not use an external .js file?
- Sep 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 05, 2006 - Can I say to deluxe-menu "use wrapping"?
- Sep 05, 2006 - Change cursor to a hand when over a menu link...
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
|