|
Chameleon v.1.08 Chameleon PHP script shows randomly, or in dependent on user's local time, different background images or colors. Copyright (C) 2005
Wangchuk Sonam For newer version check http://www.phoenix.frihost.net Features: 1. Show images/colors
randomly or in dependent on user's local time Installation: Extract chameleon.zip
in root folder. Put this script below on the very top of your php page. <?php Then put in body-definition this script below: <?php echo $back; ?> Example for body-definition: <body text="#000000" <?php echo $back; ?> > Open chameleon.php and in line 11 define default color. In line 12 you have choise to set if you would like randomly changing or user's time changing. Number 1 is for random changing, and number 2 for user's time. Last step is random.txt and local.txt customization. Random.txt have only one column per row. This column is for image path or color. If you like color for background, set first column with color number e.g.: #0033AA| You can't use words like yellow, red or blue for color deffinition. If you like image for background simple type path to image e.g.: /chameleon/images/example1.jpg| Simle example for random.txt is below: /chameleon/images/example1.jpg| Note: Don't forget | (color is only for effective demarcation) in random.txt on the end of the every row. Every row in local.txt is divided in two columns and separated with |. First column is for image path or color, and second is for time setting. In second column set hours, minutes, and seconds. E.g. 02 (show different background one second after 2 a.m.), 07.30 (show different background one second after 7.30 a.m.) or 19.15.30 (show different background one second after 19.15.30 p.m.). It is very important to set the first row with time 00, otherwise you will get white background between midnight and the first next setting. Also it is important to set time by order e.g. 00, 01.30, 03.15.30, 06.25.20, 15.48, etc. Simple example for local.txt is below: #FFFFDD|00 Addition:
|
||
|
Example for table: <table width="300" border="0" cellpadding="0" cellspacing="0" <?php echo $back; ?>> Example for cell: <td valign="top" <?php echo $back; ?>>
If you use Chameleon
and would like to help us please rate it, place a link to us on your website
or refer to us in one of good webmaster's forum. Thank you! |
||