btw, you need to have a host that allows you to use php.
Here is the code anyway
first make a folder, open up notepad, copy and paste the following code into it:
code:
<?php
$dir = "imgs";
$dh = opendir($dir);
$files = array();
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
sort($files);
array_splice($files, 0, 2);
srand( (double) microtime()*1000000 );
$key = array_rand($files);
readfile($dir . "/" . $files[$key]);
?>
the save this file as avatar.php, upload it to the folder that you just made.
Now, inside that folder, make
another folder called
imgs, now you can just place the images that you want in there, and you're off!!!
Now, all you have to do is link the avatar url to the avatar.php file.