Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:08

aaakkk!!! can't get the script to work on more than one page


Poster: serenity
Dated: Wednesday October 1 2003 - 4:27:56 BST

First of all. I have downloaded at least a thousand menue scripts some completely free some trail versions none of them worked as well , were as easy to customise, or were as nice as yours. Thank you so much!!!.

ok now I am using Frontpage for an HTML editor and I can get this and a few other scripts to work on more than one page. I have done all of the trouble shooting and have the one working page live at http://www.serenitymoon.com/index.htm any suggestions on how to get the other pages to work with the same script or do I need a new script????? :oops:


Poster: serenity
Dated: Wednesday October 1 2003 - 6:14:00 BST

Sorry I mean that I can not get this script to work on more than one page. :(


Poster: Maz
Dated: Wednesday October 1 2003 - 6:30:02 BST

Check your path, if all files are in one location and your url is
serenitymoon.com/

"/milonic_src.js"
"/tmenu_data.js"
or
"/menu_folder/milonic_src.js"


<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="tmenu_data.js" type=text/javascript></SCRIPT>

(We're you're means we-are and you-are, try We're your ;)


Poster: John
Dated: Wednesday October 1 2003 - 6:58:20 BST

Maz is correct (and beat me to it - was in the middle of a post to you and got a long phone call).

The way you have your code assumes that all your site pages are at the same level (i.e., in the same directory as your home page). They are not, and in fact you have several different directories for your pages. That's fine, but not for your coding.

As she suggested, I would put all your menu files in one directory by themselves. Maz put /menu_files/. You can call it anything you like, of course. Using this example, your code would look like this...

Code:
<SCRIPT language=JavaScript src="/menu_files/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/menu_files/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/menu_files/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/menu_files/tmenu_data.js" type=text/javascript></SCRIPT>

This code can go on any page and will work properly.