RE: dynamically serving images

2000-08-21 Thread Bill Killillay
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

RE: dynamically serving images

2000-08-21 Thread Top-Link Tech (John Ceci)
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

RE: dynamically serving images

2000-08-21 Thread Kevin Langevin
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

Re: dynamically serving images

2000-08-21 Thread Wjreichard
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

Re: dynamically serving images

2000-08-21 Thread Michael Slatoff
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