but integrating it onto the real calendar is a nightmare! The whole month
displays red when it is today, not just today day (part 2). I just can't
see why AND the test works fine. the functions work OK
can anybody see what I've missed?
Looks like you're accessing two variables that aren't used in the loop:
<cfset ThisDay = 0><!--- create a counter to loop thru the days --->
<!--- Loop through until the number of days in the month is reached. --->
<cfloop condition = "ThisDay LTE Days">
<tr><!--- sun-sat columns --->
<cfloop from = "1" to = "7" index = "loopday">
<cfif thisday is 0>
<cfif DayOfWeek(ThisMonthYear) IS LoopDay>
<cfset ThisDay = 1>
</cfif>
</cfif>
<cfif (thisday is not 0) and (thisday lte days)>
<cfset bgcolor = '##ffffff'>
<cfif url.day is thisday>
<cfset bgcolor = "##0099FF">
</cfif>
<cfoutput><td bgcolor="#bgcolor#" class="#attributes.style#"></cfoutput>
<!--- HERE: SHOULD make this bold and red if today --->
<cfset col = isToday(sd, nd)>
What are sd and nd? They don't seem to be set anywhere...
(and it seems to be overly complicated code for what you are trying to achieve)
Sean A Corfield -- http://www.corfield.org/blog/
Got Mach II? -- http://www.mach-ii.com/
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
