Here is how I do it
SomeImageName#Session.RandImageNumber#.jpg
Each time the page is refreshed the session is renewed with a new number.
You only have to get the number in the dir once.
Hope this helps some.
Bill
> -Original Message-
> From: Jon
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 needNo database n
d running in like 40
minutes.
-Kev
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 21, 2000 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: dynamically serving images
>
>
> I don't know if I'm follow you, but
I don't know if I'm follow you, but how about creating a DB table with two
fields. One for a autonumber/identity [image number] and the second with the
image path. Then you generate a random number between 1 and MAX([image
number] ... then go to that record in the table a grab the path to the i
Try this:
- Original Message -
From: "Jon Tillman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 1:46 PM
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 pseu
5 matches
Mail list logo