OK. I looked at "add event title allow color choice to display".
So at
http://www.cert-la.com/calendar2/calendar.cgi?calendar=callout, on the default.html, I added this before %><HTML>:
sub colorize {
my $details = shift;
$details->{'title'} = "<font color='" . $details->{'color'} . "'>" . $details->{'title'} . "</font>";
}
if ($VIEW eq "EVENT") {
colorize ($EVENT->{'details'});
}
elsif ($VIEW ne "Search") {
foreach $EVENT (@$EVENTS) {
colorize ($EVENT->{'details'});
}
}
else {
foreach $EVENT (@$SEARCH_RESULTS) {
colorize ($EVENT->{'details'});
}
}
That colors the text.
How can I keep the text black and have the background for each event be the color I asked for?