Olá pessoal estou tentando colocar no site uma imagem onde cada vez que abre-se outra página ou a mesma é atualizada muda para outra imagem. Só q não está funcionando. Alguém pode me dar um help por favor.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="js/logo.js"></script>
</head>
<body>
<table width="200" border="4" cellspacing="2" cellpadding="2">
<tr>
<td><img src="img/pag1.jpg" width="213" height="407"></td>
<td> </td>
</tr>
</table>
<table width="200" border="4" cellspacing="2" cellpadding="2">
<tr>
<td> </td>
<td><img onLoad="exibilogo()" src="img/achm.com.1.jpg" width="311" height="220"></td>
</tr>
</table>
<p> </p>
</body>
</html>
function exibilogo()
{
randonico = Math.round((Math.random() * 10));
if ((randonico >= 0) && (randonico <= 3) )
{
document.write ("<img src=\"img/site.com.1.jpg\" width=\"311\" height=\"220\">");
}
else if ((randonico > 3) && (randonico <= 6) )
{
document.write ("<img src=\"img/site.com.2.jpg\" width=\"311\" height=\"220\">");
}
else if ((randonico > 6) && (randonico <= 10) )
{
document.write ("<img src=\"img/asite.com.3.jpg\" width=\"311\" height=\"220\">");
}
}
Esse último é o arquivo javascript. Qndo chama o javascript ele substitui toda a página. Onde está meu erro???