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: Thursday February 8 2018 - 06:02:57

eror on main page due to mmenuns4.js


Poster: Jaco
Dated: Wednesday November 3 2004 - 21:55:47 GMT

I am getting an error on my main page at line 26

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

It seems to be related to the mmenuns4.js file.
I have the latest menu files, any help appreciated.

Jacques
http://www.fluidedesign.com


Poster: kevin3442
Dated: Wednesday November 3 2004 - 23:01:36 GMT

Hi Jacques,

You're still loading tooltips.js too soon (that's the real cause of the error message you're seeing). Your code is currently:

Code: Select all

      <SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>   
              <SCRIPT language=JavaScript src="tooltips.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="menu_data.js" type=text/javascript></SCRIPT>

Try changing it to:

Code: Select all

<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="menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="tooltips.js" type=text/javascript></SCRIPT>

Notice how tooltips.js is loaded last in this bit of code.

Hope that helps,

Kevin


Poster: Jaco
Dated: Wednesday November 3 2004 - 23:13:10 GMT

Thanks that's fixed it.


Poster: John
Dated: Thursday November 4 2004 - 4:05:36 GMT

I posted the correct sequence for you yesterday (as did Kevin), which would have fixed your troubles. All you had to do was copy/paste.

Was there a problem with our postings?


Poster: Jaco
Dated: Thursday November 4 2004 - 13:00:38 GMT

No probably not, the location of tooltips.js is fussier than I realized.

Jacques