As Simon said there is Javascript, PHP, and even GIF, you might not want to use GIF since it is a low quality image. Here is another image rotation link, also PHP is an easier than Javascript to learn. http://www.marcofolio.net/webdesign/php_random_image_rotation.html
Have fun!