Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:31
Implementing the Version 5
Poster: acb23
Dated: Thursday August 2 2007 - 11:48:36 BST
Since 2003 I'm a very happy Milonic script user (for http://www.genobuy.de). It's a pleasure to work with this script.
Unfortunately in Firefox the script isn't working anymore - so I got the new Version 5 that is even more easy to use.
The question I have: All 450 Files using the old menu script have the following two script-references in the head of the HTML-file (the menu-data and the script itself):
<SCRIPT src="js/menudata.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/mmenu.js" type=text/javascript></SCRIPT>
The Version 5 needs three references instead (menu-data and two scripts):
<script type="text/javascript" src="js/milonic_src.js"></script>
<script type="text/javascript" src="js/mmenudom.js"></script>
<script type="text/javascript" src="js/menu_data.js"></script>
Is there any workaround that would save me from updating 450 HTML-Files. I mean, is it possible to combine the two scripts, so that I can rename them to mmenu.js so that the current references still work?
Thank you very much!
Andreas Bernhard
Poster: Andy
Dated: Thursday August 2 2007 - 11:53:28 BST
If you don't need to support Netscape 4 (nobody really does anymore) than you are in luck.
What you need to do is replace js/menudata.js with mmenudom.js and replace js/mmenu.js with your new data file.
It's not the best solution but as long as you remember what you did for future reference it should be fine.
Hope this helps,
Andy
Poster: John
Dated: Thursday August 2 2007 - 16:03:55 BST
You might want to consider setting up the menu code calls as a single file and use an include against that file. That way, in case the boss loses it again some time in the future ( ), you'd only have the one file to change.
I do this on one of my sites here that has over 600 pages - update just one file and I'm finished.
Thank you!
Poster: acb23
Dated: Friday August 3 2007 - 7:22:32 BST
Andy and John,
thank you very much for your useful hints. We don't care, whether our pages are working with NS4 or not - so I'm happy.
And again, it was a wonderful experience using Milonic's scripts!