Sent by [EMAIL-REMOVED] on 27 February 2006 13:01
anyone who wants - off the board i can send some php code or a mysql
query to generate random numbers or pull random colors / hex codes from
a list or database, day of the week, other (friday = green). i use
random functions for changing output in galleries, business spotlights,
etc. if you really want to play (perhaps a fun/kids site) you could use
rand functions to generate random background colors for menu buttons.
make it fun.
Paul Novitski wrote:
>At 04:01 AM 2/27/2006, Paul Annett wrote:
>
>
>>Is there a way I can give a DIV a random background color? From a list
>>of pre-defined colors?
>>
>>
>>
>>"Ya cain't get thar from here." CSS can't do it.
>>
>>OT: Random number generation is built in to today' scripting
>>languages, e.g. in PHP rand(0,255) generates a number between 0 and
>>255 and can be called three times for the three color components rgb(r,g,b).
>>
>>Paul
>>
>>
>>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/