One way,

use cfdirectory to get a query recordset of all the images you want to
rotate
then get the total recordcount from the cfdirectory query, use the random
function to get a random number the access the query record set as an Array
and get the record and fields that you need....No database needed and should
still be pretty quick....

HTH,
John Ceci
TopLink Technologies
http://www.tltechnologies.com


-----Original Message-----
From: Jon Tillman [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 3:46 PM
To: [EMAIL PROTECTED]
Subject: dynamically serving images


Okay, so I have a directory full of images that are all the same size, and I
want to display them in some pseudo-random order, so that you don't see the
same one every time you hit the page containing them...

Heres what I have figured out:
        make a series of includes to point to each image
                <image_01.inc>
                <a href="http://www.blah.com">blah.jpg</a>

Now i need to figure out how to loop through the list of available
includes and pick one at random. Any ideas?

 --
***********************************************
 Jon Tillman
 LINUX USER: #141163
 ICQ: 4015362
 http://www.eruditum.org
 [EMAIL PROTECTED]
***********************************************
Help Jon build a network!
Looking for giveaway computers & parts
Current Need: Tape Drive & PI/PII processors
Email me to find out how you can help
***********************************************

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to