a simplified version would be something like this:

<cfset list_images = "image1.jpg, image2.jpg, image3.jpg">

<img src="#trim(ListGetAt(list_images, RandRange(1,
listlen(list_images))))#">


a coldfusion version of <img
src="/path/to/images/rotate.php?img=my_static_image.jpg" /> would use
CFCONENT and would be resource intensive. You'd be better off using the code
above within a CFC, custom tag or include to generate a html img tag.

Gav



----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 3:29 PM
Subject: [cfaussie] Image randomizer


> Does anyone know of a CF method to do the following?
>
> http://www.alistapart.com/articles/randomizer/
>
> Thanks,
>
> Brian
>
> ---
> You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to