I am working from the code posted on the following http://www.htmlgoodies.com/beyond/j...l-Adding-Rotating-Images-to-Your-Web-Site.htm for an image rotator using ...
i've gotten around this by naming my images with sequential numbers. then you can just have a constant you change that holds the number of the largest image and you can use that to construct your loop ...