Here's one way. <cfset olddate = "1/1/1950"> <cfset bgcolor = 0> <cfloop query="myquery"> <cfif myquery.eventdate neq olddate> <cfset olddate = myquery.eventdate> <cfset bgcolor = 1 - bgcolor> </cfif> <tr style="background-color:#IIf(bgcolor, DE('white'), DE('gray'))#"> <td>...</td> <td>...</td> </tr> </cfloop>
----- Original Message ----- From: "Les Mizzell" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Monday, March 28, 2005 2:44 PM 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? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:200284 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