The PHP Script

This will rotate between image1.gif and image2.gif, which are located in /mysite/randomimages/ on your server.

Adding more images is easy, just continue to add lines, starting with the next digit and has a corresponding file name, in the $images = array(); segment. This is the same code with five images instead of two: