Hola
Joystickoso
Mira si te sirve este script:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cambio aleatorio de imagen al cargar la pagina</title>
</head>
<body>
<div style="">
<script type="text/javascript">
function ver_imagen()
{
n=0;
this[n++]="http://farm3.static.flickr.com/2235/2169132446_f272e62af5.jpg";
this[n++]="http://farm4.static.flickr.com/3053/2556446142_f0d4639ca8.jpg";
this[n++]="http://farm2.static.flickr.com/1180/1438562490_2d8bee44fd.jpg"
this.N=n;
}
var imagen=new ver_imagen();
src= imagen[ Math.floor(Math.random() * imagen.N) ] ;
document.write("<img src="+src+">");
</script>
</div>
</body>
</html>
Bye