Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Cista
Advanced
Posts: 26 Joined: Sat May 25, 2002 1:58 pm
Post
by Cista » Thu Sep 09, 2004 4:44 pm
Hello,
I'd like remove the milonic files and put them in a specific directory (menu).
In the index.html, I do this :
Code: Select all
<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,
Ruth
Team
Posts: 8763 Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:
Post
by Ruth » Thu Sep 09, 2004 5:04 pm
Hi,
You need to correct the path for the mmenuns4.js and mmenudom.js
Code: Select all
<!--
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
Cirtap
Advanced
Posts: 17 Joined: Fri Mar 19, 2004 10:02 am
Post
by Cirtap » Fri Sep 10, 2004 11:45 am
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
John
Team
Posts: 5967 Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:
Post
by John » Fri Sep 10, 2004 7:26 pm
It's a little tough following just what you have, but I think this should work...
Code: Select all
<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.
John