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

    I do not want to change every page with the menu each time I need to make changes in expandable menu tree...

Return to Recent Questions


Q: I have hundreds of pages in my site and I'd like to be able to use your expandable menu tree on all of them.
I do not want to go change every page with DHTML Menu in the site each time I need to make a some changes in the expandable menu tree.

I want to edit only one file, so the expandable menu tree will change as needed and all the pages read that file and display the expandable menu tree.

<script type="text/javascript">var dmWorkPath="files/";</script>
<script type="text/javascript" src="files/dmenu.js"></script>
<div id="dmlinks" style="font:bold 9px Verdana;color:#FFFFFF;text-decoration:none">
<a id="dmI0" HREF="500main.htm">Home</a>
<a id="dmI2" HREF="tixbbs.htm" TARGET="text">For Sale</a>
<a id="dmI4" href="testlink.html">Place Ad</a>
<a id="dmI5" href="testlink.html">Sources</a>

</div>
<script type="text/javascript" src="data-menu.js"></script>


A: If you don't want to install your expandable menu tree on each page, you can try to use frames, the expandable menu tree has a cross-frame mode.
Please, see more info about cross-frame mode here:
http://dhtml-menu.com/menu/cross-frame-mode-sample.html

Also you can use a server-side script (php, asp, vb, etc.) to generate html pages from templates on your server.
If you change the expandable menu tree parameters only there is no need to change code on each page. You should only replace your old data file (data-menu.js) with the new one.






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 image gallery | top website builder | bootstrap navbar | HTML5 Video | jquery slideshow