It's not working from the other directory because your JS calls are wrong, as you surmised.
You now have...
Code: Select all
<script language=JavaScript src="scripts/milonic_src.js" type=text/javascript></script>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=Javascript src=scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=scripts/mmenudom.js><\/scr"+"ipt>");
</script>
<script language=JavaScript src="scripts/menu_data.js" type=text/javascript></script>
...which is OK (I guess) for the first directory level, but nothing else. This code says, "start looking from where I am
now for /scripts/". If you happen to be in /newsite/ that will work, but if you are in /tryagain/, /scripts/ is not next in line (which is where the code says to look).
Server-relative addressing will fix this...
Code: Select all
<script language="Javascript" src="/acad/biol/newsite/scripts/milonic_src.js" type="text/javascript"></script>
<!--
<script language="Javascript">
if(ns4)_d.write("<scr"+"ipt language=Javascript src=/acad/biol/newsite/scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=/acad/biol/newsite/scripts/mmenudom.js><\/scr"+"ipt>");
</script>
-->
<script language="Javascript" src="/acad/biol/newsite/scripts/menu_data.js" type="text/javascript"></script>
This way, regardless of where you are in the structure, the search for /scripts/ will always start at the root level of your site. Remember to adjust this accordingly if this path is not the final location of this site.
Note I have added a little "fluff" to the JS calls. This brings them more in line with W3C standards, and stops validation errors if you check your code that way.
You also need to upgrade your menu for further support. You are running 5.21, current is 5.33.
Syntax in your _data file needs some work as well...
Code: Select all
aI("text=Bio Home;url=index.html;;status=Back to Main Page;separatorsize=1")
...should be...
Code: Select all
aI("text=Bio Home;url=index.html;status=Back to Main Page;separatorsize=1;");
Note the removal of the double ;; after the url, and the close of the statement - ;"); .
All your aI statements need these fixes.