Hello, I recently downloaded a Javascript routine to rotate images on my web pages. It works quite well, but requires the main Javascript routine to be in the <head> of the page - about 165 lines of code. When I run the HTML validator on the page, every line of Javascript produces and error. To avoid this, and to streamline my markup, I would like to move this Javascript routine to a separate file, but not knowing Javascript, I don't know how to do this. Here's the "calling" code in the <body>:
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder) (the comment wrapped in this window)
new fadeshow(fadeimages, 200, 167, 0, 2000, 1, "")
</script>
I know that the variables mentioned above have to be passed externally when the Javascript is a separate file, I just don't know how to do it.
Any help will be greatly appreciated!
Phil