If that's a straight forward query output then this should do it for you:
<cfoutput query="query">
<cfif query.CurrentRow MOD 2>
one colour
<cfelse>
another colour
</cfif>
</cfoutput>
If it's not a standard output, you're using group="column" in your output
then track a variable yourself for the nested cfoutput:
<cfset i = 1>
<cfoutput query="query" group="column">
<!--- You may need to reset i to 1 in here if you don't get the required
behaviour --->
<!--- <cfset i = 1> --->
<cfoutput>
<cfif query.CurrentRow MOD 2>
one colour
<cfelse>
another colour
</cfif>
<cfset i = i + 1>
</cfoutput>
</cfoutput>
Ade
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: 28 March 2005 22:44
To: CF-Talk
Subject: Alternating Row Colour - Sorta
Here's the page in question:
http://www.stpaulscolumbia.com/calendar.cfm
Client is asking for alternating colors for DAYS - not rows.
At first, I figured, OK, Odd Dates one colour, Even Dates another.
Nope, don't work because there may be something on the 5th and 7th, both
odd dates - but not the 6th ... and then you'd get two groups of events
- those on the 5th and 7th, the same colour.
I'm looking at various convoluted ideas for this, but bet the list can
comeup with something a little more compact than I...
Ideas?
--
-----------
Les Mizzell
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200280
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