Funnily enough, when my office colleagues sampled my creation the exact words of one of them was “So you’re as bored today as we are?”
edit: the latest incarnation now randomizes the font and the x/y position, but firefox doesn’t display the wingdings or webdings fonts without a config change so it doesn’t look much different.
Latest code…
<?php
$chars = array(0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','r','s','t','u','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','R','S','T','U','W','X','Y','Z','?','!','#','@','%');
$fonts = array('abadi','French Script','Old English Text','Almanac','Garamond','Onyx','Andale Mono','Gautami','Palace Script','Andy Bold','Georgia','Parties','Arial','Gill Sans','Pepita','Arial Unicode','Gloucester Extra Condensed','Perpetua','Batang','Goudy Old Style','Placard Condensed','Bell','Gulim','Raavi','Bernard Condensed','Hei','Rockwell','Bodoni','Heisei','Runic Condensed','Bon Apetit','Holidays','Script Bold','Bookman Old Style','Impact','Shruti','Braggadocio','Imprint Shadow','Signs','Brush Script Italic','Kartika','SimHei','Calisto','Keystrokes','SimSun','Castellar','Kino','Sorts ','Sorts 2','Centaur','Latha','Sports 2','Sports 3','Century Gothic','Lucida','Symbol','Century Schoolbook','Mangal','Tahoma','Colonna','Matura Script Capitals','Times New Roman','Comic Sans','Mercurius Script Bold','Transport','Corsiva','Microsoft','Sans Serif','Trebuchet','Courier New','MingLiU','Tunga','Curlz','MS Gothic','Twentieth Century','Directions','MS Mincho','Vacation','Engravers','MV Boli','Verdana','Felix Titling','News Gothic','Vrinda','Footlight','Nina','Webdings','Forte','OCR A Extended','Wingdings');
$count=0;
echo "<p>";
while($count < 5000)
{
$textcolor = dechex(rand(0,16700000));
$textsize = (rand(1,150));
$char = $chars[rand(0,count($chars))];
$fontface = $fonts[rand(0,count($fonts))];
$top=(rand(0,1024));
$left=(rand(0,1280));
echo "<font style=position:absolute;top:$top;left:$left;font-family:'$fontface';font-size:$textsize;color:$textcolor>$char</font>
";
++ $count;
}
/*
while($count <= count($fonts))
{
$fontface = $fonts[$count];
echo "<font style=font-family:’$fontface’;font-size:30;>$fontface</font>
";
++$count;
}*/
echo “</p>”;
?>