(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 just want to use the API to change the icon on the menu items.

Return to Recent Questions


Q: Do you have an extremely simple example of modifying a menu with the JavaScript API? I've played with the example on the site, but I have trouble removing the other menus without breaking it.

I just want to use the API to change the icon on the menu items.

A: You should use the following function:
function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)

<script language="javascript" >
dm_ext_changeItem(0, 0, 1, ["", "", "new_icon.gif", "new_icon_o.gif", "",,""]);
</script>






Return to Recent Questions

Related:
Beautiful JS Page Theme Review 30+ Top Innovative Software Company Website Template List  |  Magical HTML Bootstrap Slider With Text Templates  |  Splendid JS Design Maker Overview  |  How to Make a Webpage - Step by Step Tutorial  |  Perfect Responsive JS Website Templates Review  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | Free AI Website Generator | AI Website Generator | AI web design generator | AI web page design generator