• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need some help converting this class to CI's Calendar class :( willing to pay.

#8
[eluser]Kinsbane[/eluser]
Oh shoot!

I also forgot to mention earlier that I don't want the number of possible colors that an event can have to be limited to 16 per month.

I would like to use a random color for each event, and found this function for generating random HTML color hex codes. I'm hoping to interpret this into the Calendar somehow..

Code:
function random_color()
    {
        mt_srand((double)microtime()*1000000);
        $c = '';
        while(strlen($c)<6){
            $c .= sprintf("#X", mt_rand(0, 255));
        }
        return $c;
    }


Messages In This Thread
I need some help converting this class to CI's Calendar class :( willing to pay. - by El Forum - 04-14-2008, 03:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.