Wednesday, May 31, 2006

Websafe colors

I made a script that will display websafe colors. rather than running around and looking for a color chart i made my own.

$values = array('00','33','66','99','cc','ff');

$endval = "6";
$endval2 = $endval - 1;
for($a=0;$a<$endval;$a++){
echo "<table width=\"900\"><tr>";
for($b=0;$b<$endval;$b++){

for($c=0;$c<$endval;$c++){
$bgcolor = $values[$a].$values[$b].$values[$c];

echo "<td bgcolor=\"". $bgcolor ."\">".$values[$a].$values[$b].$values[$c]."</td>";
if($c == "$endval2"){
echo "</tr>\n<tr>";

}
}
}

echo "</tr></table>\n";
}

Link cleaning

I was working on some of our sites today.
http://www.anythingboats.com/
http://www.anythingrvs.com/
http://www.anythingmotorcycles.com/
http://www.anythingplanes.com/

I was cleaning out some of the crappy sites that put links on our link pages.
I'm reading that linking to spammy sites might not be the best thing to do.
and I removed people that signed up to the forums just for the links to their websites.
alot of russians seem to be looking for places to put their links.