First you need to know the correct way to call an external script:
HTML Code:
<script src="somejavascript.js" type="text/javascript"></script>
Then you have to have the bright idea that hey, if I put something like that in a document.write statement, the '</script>' part will end the script. Two ways to get around it:
Code:
<script type="text/javascript">
document.write('<script type="text/javascript" src="motiongallery.js"><\/script>')
</script>
and
Code:
<script type="text/javascript">
document.write('<script type="text/javascript" src="motiongallery.js"></sc\
ript>')
</script>
Bookmarks