You have get_events.recordcount that should probably be
get_events.currentrow
Try...
<cfif currentrow mod 2 is 0>
<cfset bgclr = "##ccc" />
<cfelse>
<cfset bgclr = "##eee" />
</cfif>
<td style="padding-top: 1px; padding-bottom: 2px; width: 35px; border-left:
1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ###bgclr#;
color:
black; font-size: 11px; font-weight: normal; text-align:
center;">#dateformat(event_date, "ddd")#</td>
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 27, 2007 7:31 AM
To: CF-Talk
Subject: Why wouldn't the first cell alternate colors with this code?
Hi, all.
Assuming all other related issues with this code are correct, why wouldn't
this first cell alternate colors coded like this? The background color
attribute
seems to be ignored.
<cfif get_events.recordcount mod 2>
<td style="padding-top: 1px; padding-bottom: 2px; width: 35px; border-left:
1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ##ccc; color:
black; font-size: 11px; font-weight: normal; text-align:
center;">#dateformat(get_events.event_date, "ddd")#</td>
<cfelse>
<td style="padding-top: 1px; padding-bottom: 2px; width:
35px; border-left: 1px solid ##aaa; border-bottom: 1px solid ##aaa;
background: ##eee; color: black; font-size: 11px; font-weight: normal;
text-align: center;">#dateformat(get_events.event_date, "ddd")#</td>
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289611
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4