move to folder problems

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
spiderweb
Beginner
Beginner
Posts: 7
Joined: Fri Apr 22, 2005 10:21 am

move to folder problems

Post by spiderweb »

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
Advanced
Posts: 13
Joined: Wed Jun 15, 2005 1:06 pm
Contact:

Post by AangepasteAuto »

My guess is you need to change the path in the .js files also.

Did you do that?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Exactly what error are you getting?

Also, please post (as requested) a URL.
John
spiderweb
Beginner
Beginner
Posts: 7
Joined: Fri Apr 22, 2005 10:21 am

Post by spiderweb »

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

:cry:
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: move to folder problems

Post by kevin3442 »

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