Implementing the Version 5

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
acb23
Beginner
Beginner
Posts: 5
Joined: Wed May 19, 2004 7:31 am

Implementing the Version 5

Post by acb23 »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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 ( :roll: ), 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.
John
acb23
Beginner
Beginner
Posts: 5
Joined: Wed May 19, 2004 7:31 am

Thank you!

Post by acb23 »

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!
Post Reply