2
Try to do this:
1. copy your java script file ex. myjava.js into "include" folder of XOOPS (www.mysite.com/include/)
2. in your theme script(theme.html) add this line in head section of your theme
<script type="text/javascript" src="<{$xoops_url}>/include/myjava.js"></script>
It should work