Actually tech, it's not a rondom image, it's a dynamically generated image.
PHP has the ability to output streams other than text hence the ability to output binary data such as images and flash animation. This trick is accomplished by creating a PHP script that outputs an image and then using that script file as the image itself within HTML tags (or YaBB tags as the case may be) in the format <IMG SRC="image.php">.
The code used to generate the image I'm now using is below:
Code:
<?
$RF = "oneliners.txt";
if (file_exists($RF))
{
$fp = fopen($RF, "r");
$index = 0;
while (!feof ($fp))
{
$lines[$index++] = fgets($fp, 4096);
}
fclose($fp);
}
header ("Content-type: image/png");
$im = @ImageCreate (500, 30) or die ("No GD image support");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
srand ((double) microtime() * 10000000);
$rand_line = array_rand ($lines, 1);
$String = $lines[$rand_line];
ImageString ($im, 2, 5, 5, $String, $text_color);
ImagePng ($im);
?>
All you need do after this is have a file called "onliners.txt" in the same directory, place it on a server with PHP and GD support and place the file name in your image tag as shown above.
-Life needs...Openess