Having problems with DHTML Menu? There is usually somebody here who knows the answer.
spiderweb
Beginner
Posts: 7 Joined: Fri Apr 22, 2005 10:21 am
Post
by spiderweb » Wed Jun 15, 2005 2:44 pm
hi
I have the following which works fine
Code: Select all
<script type="text/javascript" src="milonic_src.js"></script>
<div class=milonic><a href="https://milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data.js"></script>
I want to move all my java files to a java folder so they can be accesed with ease. so i have changed the above code to the following which is coming up with an error. any ideas
Code: Select all
<script type="text/javascript" src="../java/milonic_src.js"></script>
<div class=milonic><a href="https://milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=../java/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=../java/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="../java/menu_data.js"></script>
spider
AangepasteAuto
Advanced
Posts: 13 Joined: Wed Jun 15, 2005 1:06 pm
Contact:
Post
by AangepasteAuto » Wed Jun 15, 2005 3:28 pm
My guess is you need to change the path in the .js files also.
Did you do that?
John
Team
Posts: 5967 Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:
Post
by John » Wed Jun 15, 2005 5:15 pm
Exactly what error are you getting?
Also, please post (as requested) a URL.
John
spiderweb
Beginner
Posts: 7 Joined: Fri Apr 22, 2005 10:21 am
Post
by spiderweb » Wed Jun 15, 2005 5:25 pm
AangepasteAuto wrote: My guess is you need to change the path in the .js files also.
Did you do that?
Where do i need to change the path in .js file? and in which one?
The only reference i can see is for the little arrow gif in the menu_data.js
kevin3442
Milonic God
Posts: 2460 Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:
Post
by kevin3442 » Wed Jun 22, 2005 12:09 am
spiderweb wrote: ......coming up with an error. any ideas
What error?
I suspect that it has to do with using ../ in the path to the .js files (relative paths can be problematic).
If you could post a url to an example page, that'd help.
Cheers,
Kevin