Different Image for each session

smdion

Limp Gawd
Joined
May 30, 2003
Messages
447
Working on a small project here to update our Classroom support page, and we are wondering if there is a way in HTML to have a pool of say 8 images and for each new session, they get one of those random images.
 
With javascript? Sure.

With a serverside generated dynamic page? Sure.

In static HTML? No.
 
You can do it in static HTML, your img link just isn't to a static location but rather a CGI pgm that returns the image.

static image:
<img src=some URL for the image>

dynamic image:
<img src="some url to a cgi pgm that returns the image data">

Same way some "pageviewcount" images are built and CAPCHAs for that matter.
 
Back
Top