(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    Is there a way I can include javascript dropdown menus code parameters in a separate file?

Return to Recent Questions


Q: Is there a way I can do an include my javascript dropdown menus parameters in a separate file:

     var menuItems = [];


A: You can delete var menuItems = []; and dm_init(); function from your data.js file and paste it into your html page directly or in the other file.

You should call your data.js file with the javascript dropdown menus parameters at first and than menuItems = []; and dm_init();.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap gallery | web design software | best website builder software | bootstrap navbar | Javascript Slideshow