In javascript you can access an IMG HTML tag and change it's SRC property causing the browser to load a different image.
There are a couple of tutorials here which might help you.
There is a sample code that does something like you want with JavaScript and random images which you can check out here. I haven't used it though.
If you require further assistance search for the keywords "JavaScript images timer" in Google and you should find more results.