ROFL!
I used to have something that just ran a cfdirectory call and used
that, but can't find it. This is probably more efficient, anyway:
Put image names, widths and heights into a table. You'll know in
advance how many records are in it (I assume) and lets say that you
know there are 175 records. Run a cached query against it like this:
<cfset R_ID = RandRange(1,175)>
<cfquery
datasource="#application.foo#"
name="ImageGet"
cachedwithin="#CreateTimeSpan(0,6,0,0)#">
SELECT
Images.Image,
Images.Height,
Images.Width
FROM Images
WHERE Images.ID=#R_ID#
</cfquery>
<cfoutput>
<img src="" height="#images.Height#" width="#Images.Width#">
</cfoutput>
--
--Matt Robertson--
MSB Designs, Inc.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

