I posted this in the now-defunct programming section long ago, however some might still find it useful.
Simply place the following code in a .php file and link it as you would an image. It will automatically pull a random image from the directory that is with it and display it in your signature.
For a sample, please see my sig.
Good luck, and I hope you find this useful
Code:<? /* Random Image Signature Select-0-Tron for MMOwned Members Written by lag, posted at http://mmowned.com/ */ $imgCount = 0; $imgDir = opendir ("."); while ($file = readdir($imgDir)) { $fileExt = strrchr($file,"."); $validExt = eregi("jpg|gif|png",$fileExt); if ($file != '.' && $file != '..' && $validExt) $validImages[$imgCount++]=$file; } closedir ($imgDir); $imgName = $validImages[rand(0,sizeof($validImages)-1)]; if ($imgCount == 0) die(); readfile("$imgName"); ?>