What I did for mine was to store a list of the banners in a session
structure and pick one, display it and remove it for each page load.

So if the structure held 1, 2, 3, 4 the initial page load would pick a
random banner... say 3 and display it and remove it.

That leaves 1, 2, and 4 in the structure

Once it is empties, just rebuild it and it's ready to go again.

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.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:250225
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to