View Full Version : How to load alternate image each time page loads?

03-20-2007, 11:31 PM

I'm an amateur photographer and am putting together a website to display my work using Dreamweaver.

On the front page of the site, I'd like a single JPEG image to display. I'd like to set it up so that each time a user loads up the front page of the site, a different JPEG image is displayed at random.

e.g. if I have a pool of 4 different images (A, B, C and D), each time a user loads up my frontpage, one of these images displays. The first time the user loads my page, image C might display. The next time it might be A, and so on.

Does anyone know any way of using Dreamweaver to achieve this?

03-21-2007, 03:51 PM
Kaosweaver has a great extension that makes adding random images really easy: