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

Place .js file of Milonic menu in a directory


Poster: Cista
Dated: Thursday September 9 2004 - 16:44:17 BST

Hello,

I'd like remove the milonic files and put them in a specific directory (menu).

In the index.html, I do this :

Code:
<script type="text/javascript" src="menu/milonic_src.js"></script>   
<script   type="text/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 type="text/javascript" src="menu/menu_data.js"></script>   


But that's not work. Do you have an idea why ?

Thanks,


Poster: Ruth
Dated: Thursday September 9 2004 - 17:04:12 BST

Hi,
You need to correct the path for the mmenuns4.js and mmenudom.js

Code:
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=menu/mmenuns4.js><\/scr"+"ipt>");       
  else _d.write("<scr"+"ipt language=JavaScript src=menu/mmenudom.js><\/scr"+"ipt>");
-->
</script>


Ruth


Poster: Cirtap
Dated: Friday September 10 2004 - 11:45:22 BST

Hey!

I have a similar problem.
Have the index.html at the root level and my milonic-files in a "menu folder", and that no problem. My other files have I put in a folder named "members". The patch for the files in that folder is_[b]src=menu/[/b]_but it want work.


//Cirtap


Poster: John
Dated: Friday September 10 2004 - 19:26:46 BST

It's a little tough following just what you have, but I think this should work...
Code:
<script language="javascript" src="/menu/milonic_src.js" type="text/javascript"></script>
<script language="javascript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<script language="javascript" src="/menu/menu_data.js" type="text/javascript"></script>

This assumes a directory called /menu/ at the root level that contains the menu code files. It doesn't matter at which level your other directories are located.