Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Event Background Colour in Day Span
Pages: [1]   Go Down
Print
Author Topic: Event Background Colour in Day Span  (Read 264 times)
0 Members and 1 Guest are viewing this topic.
mentalman
Guest
« on: June 28, 2006, 09:30:00 AM »

Hi,

What a top forum!

I have managed to change the colour of the text by adding the below code into the default.html and adding a color event however I would like to change the event background colour also of the day span for different events - how can this be done?

Thanks

mentalman

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'});
         }   
      }

Logged
Pages: [1]   Go Up
Print
Jump to: