[thelist] Very basic JavaScript question

Tom Dell'Aringa pixelmech at yahoo.com
Thu Sep 30 06:31:50 CDT 2004

--- Shane Miller <smiller at callcenters24x7.com> wrote:
> What I'd like to do, though, is
> "reset" back to the first picture when I've reached the last image in the
> array.  

Try this:

function StartOver()
  index = 0;
  start = 0;
  document.images['imageName'].src = arrayOfImages[start];

Untested but should work.



Get Firefox! | http://www.pixelmech.com/

More information about the thelist mailing list