para hacer un random es asi
<script language="Javascript">
/*****************************************
Para Agregar mas imagenes y links copia *
la linea que se indican con los sig datos*
["url del banner", "imagen del banner"], *
for(unknown){
[email protected] *
*****************************************/
var banners = [
["http://www.url1.com", "untitled0.gif"],
["http://www.url2.com", "untitled1.gif"],
["http://www.url3.com", "untitled2.gif"]
];
function rota()
{
z=Math.round(Math.random()*(banners.length-1));
document.links[0].href=banners[z][0];
document.images['baneer'].src=banners[z][1];
}
onload=rota;
</script>
<a href="ban" id="pl" name="ban"><img name="baneer" width="400" height="50" border="0"></a>