in this scenario i would do something more like...

<CFSET aryImages = ArrayNew(1)>
<CFSET aryImages[1] = "buy_sidepanelimage.gif">
<CFSET aryImages[2] = "buy_sidepanelimage2.gif">


<CFSET iRnd = RandRange(1, ArrayLen(aryImages))>

<cfoutput><img src="images/#aryImages[iRnd]#" width="200"
height="350"></cfoutput>


HTH


On Wed, 09 Mar 2005 14:12:57 -0400, Will The Game <[EMAIL PROTECTED]> wrote:
> I'm creating a structure of two images. Then I want them to rotate when the 
> page reloads. I've been doing this fine with my db and using randrange in the 
> WHERE, but how would I make it work with my structure?
> 
> Thanks,
> Will
> 
> <cfset imagedisplay= StructNew()>
> <cfset imagedisplay.imageID = 1>
> <cfset imagedisplay.imagename = "buy_sidepanelimage.gif">
> <cfset imagedisplay.imageID = 2>
> <cfset imagedisplay.imagename = "buy_sidepanelimage2.gif">
> 
> <cfoutput><img src="images/#?????#" width="200" height="350"></cfoutput>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198011
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to