<cfset session.bannerID=session.bannerID+1> <cfinclude template="banner#session.bannerID mod 3#.cfm" />
> -----Original Message----- > From: Ben Nadel [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 5:59 PM > To: CF-Talk > Subject: RE: Banner rotation with a cfinclude > > <cfinclude template="banner#RandRange( 1, 3 )#.cfm" /> > > This will create a dynamic include. RandRange() is an inclusive range > selector. It will return (in this case) either 1, 2, or 3. Therefore, for > each page load, you will get a random banner to show. > > ....................... > Ben Nadel > www.bennadel.com > > > -----Original Message----- > From: Richard Colman [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 5:18 PM > To: CF-Talk > Subject: Banner rotation with a cfinclude > > I want to do a REALY simple "banner rotation" on each page load, where the > "banner" is not an image, but a small file containing an image with some > text. > > So, on the first load, it would run: > > <cfinclude template="banner1.cfm> > > Then, perhaps: > <cfinclude template="banner2.cfm> > > Then, perhaps: > <cfinclude template="banner3.cfm> > > The order is not important. > > There are a zillion banner scripts and modules out there, but the few that > I > looked at don't quite do this. > > Can someone recommend some scripting to make this happen? > > TNX if you can help. > > Rick Colman > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250235 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

