Get a Quote Today!   |   + 1 (301) 424 3903




 
  Community
 
Need Help?
Visit our Training page
Request a Quote or Consultation
SIGN UP FOR THE TERATECH NEWSLETTER
 

ColdCuts

Cut: Random Image Selector
Cut#: 97 
Cut Date: 05/03/2000 
Cutter: Xing Li 
Topic: Appearance 
Overview:

I need a random image generation script that can be called from within a regular HTML script.

 

Cut Code:
This is pretty easy to do in ColdFusion. Just have your <img> src point to
a .cfm files and in randomImage.cfm use CFCONTENT to deliver the picture to the
browser. You can insert some kind of randomness that determines the src of
your image.

<img src="randomImage.cfm">