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

    Is it possible to use an external file in the menu in java script?

Return to Recent Questions


Q: I have one site with many pages, it would be handy not to have to change 20 pages just to modify one menu in java script.

Is it possible to use an external file with these applets? Have tried
<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"myscript.js\">
</SCRIPT>

but it does not work!



A: You can use "menuItemsFile" param, for example
<param name="menuItemsFile" value="menu1.txt">
The menu in java script items are in menu1.txt, so you'll need to change only this menu1.txt when it is necessary to add/remove/change items.

See more info:
http://www.apycom.com/xp-drop-down-menu/ex2.html






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. HTML5 Video Player | CSS Drop Down Menu | jQuery Slider | jQuery Menu | HTML Menu