<cfparam name="application.counter" default=0>
<cfif application.counter = 10>
<cfset application.counter = 0>
</cfif>
<cfset application.counter = application.counter +1>


<cfinclude template="banner#application.counter#.cfm>

 

-----Original Message-----
From: Richard Colman [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2006 22:41
To: CF-Talk
Subject: Simple 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:250229
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