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:41
move to folder problems
Poster: spiderweb
Dated: Wednesday June 15 2005 - 14:44:34 BST
hi
I have the following which works fine
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<div class=milonic><a href="http://www.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:
<script type="text/javascript" src="../java/milonic_src.js"></script>
<div class=milonic><a href="http://www.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>
<div class=milonic><a href="http://www.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
Poster: AangepasteAuto
Dated: Wednesday June 15 2005 - 15:28:54 BST
My guess is you need to change the path in the .js files also.
Did you do that?
Poster: John
Dated: Wednesday June 15 2005 - 17:15:09 BST
Exactly what error are you getting?
Also, please post (as requested) a URL.
Poster: spiderweb
Dated: Wednesday June 15 2005 - 17:25:58 BST
AangepasteAuto wrote:
My guess is you need to change the path in the .js files also.
Did you do that?
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
Re: move to folder problems
Poster: kevin3442
Dated: Wednesday June 22 2005 - 0:09:04 BST
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