leidinlegur kodi sem eg er med, a ad byrta myndir randomly en eg tharf ad refresha allveg i klessu til ad naesta komi, virkar vel i IE en i firefox er thetta ekki ad meika thad.

<?
$dh = opendir(".");
while (false !== ($file = readdir($dh)))
{
  if (preg_match('/\.jpg$/i', $file) and $file != "logo.jpg")
  {
     $filelist[] = $file;
  }
}
srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);
header("Location: " . $filelist[$picnum]);
closedir($dh);
?>
Cosplay, the only thing that makes sense.