Created
May 19, 2011 09:05
-
-
Save mbernson/980444 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function rgb_rand() | |
{ | |
$r1 = mt_rand(0,255); | |
$r2 = mt_rand(0,255); | |
$r3 = mt_rand(0,255); | |
return 'rgb('.$r1.', '.$r2.', '.$r3.')'; | |
} | |
?> | |
<style type="text/css"> | |
body { | |
background-color: <?php echo rgb_rand(); ?>; | |
font: 200% "Helvetica", "Comic Sans MS", sans-serif; | |
text-transform: uppercase; | |
} | |
p { | |
display: inline; | |
margin: 4px; | |
padding: 0px; | |
} | |
</style> | |
<?php | |
$n = array( | |
'angelo', 'harry', 'allan', 'mathijs', 'gerrit', 'will', 'sander', 'alex', 'brom', 'sam', 'farid', 'ertugrul', 'rutger', 'jelle', 'bart', 'taliesyn', 'jan', 'bahtiyar', 'akash', 'fons' | |
); | |
$a = array( | |
'hai', 'hallo', 'tot ziens', 'alsjeblieft', 'dankjewel', 'ga weg', "you be trollin'", 'u jelly', | |
'get down on friday', 'look at my horse' | |
); | |
for($c = 0; $c < 100; $c++) | |
{ | |
shuffle($n); | |
shuffle($a); | |
$naam = $n[0]; | |
$aanroep = $a[0]; | |
echo '<p style="color: '.rgb_rand().'; font-size: '.mt_rand(80, 240).'%;">'.$aanroep.' '.strtoupper($naam).'</p>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment