Hi All,

Forgive me, I know this is a very newbie question, but I wote a series of JS functions to control an image gallery, and when all the functions were in one file, it loaded and operated reasonable well. I decided to take my addLoadEvent function and break it out into a separate file, and added another JS file that contains an array of images for pre-loading.

I know the script is fine, because it works when it's all in one file. But when I call the separate files from the HTML like this:

HTML Code:
<script language="JavaScript" type="text/javascript" src="../scripts/galleryInit.js"></script>
<script language="JavaScript" type="text/javascript" src="../scripts/w1-imgPre.js"></script>
<script language="JavaScript" type="text/javascript" src="../scripts/addload.js"></script>
it suddenly won't load or function. Any suggestions? I'm tired of looking at this, and pretty frustrated, because this is supposed to work, you know?

Thanks all!