> 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))))#">

You might wanna use the Randomize() function somewhere too, to seed the
random number generator, or you might get the same image over and over
again... Just don't use GetTickCount() as a seed value or one day that
number will get too big. I'd prolly use the time, eg
#Randomize(TimeFormat(Now(),'mmss'))#

K.

_____________________________________________________________
Kay Smoljak       Senior Developer/QA        PerthWeb Pty Ltd

Level 9/105 St George's Terrace -  Perth  - Western Australia
Ph: (08) 9226 1366                        Fax: (08) 9226 1375

http://www.perthweb.com.au   http://developer.perthweb.com.au  



---
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