(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    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:
Website Builder for nonprofits and therapists Best Website Builder for Education, Software Companies, Designers, Videos  |  Website Builder for Online Stores, Restaurants, Musicians, Real Estate  |  Website Builder for Beginners, Bloggers, Writers, IT Companies  |  Website Builder for Churches, Authors, Consultants, Magazines  |  Best Website Builder for podcasts and affiliate marketing  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Free AI Website Builder | Website Generator AI | AI web design generator | AI website design generator