a questo punto ti propongo una modifica sostanziale, tutto lo sniffer x determinare il browser nello script che hai postato può fare + male che altro.
Copia il codice che appare nella textarea premendo il tastino quote in basso a destra
codice:
<html>
<head>
<title>banner [solo il primo random]</title>
<script type="text/javascript">
tot_ban=4; // totale dei banner da ruotare
timer=2000; // rotazione ogni 2 sec.
listofimages=new Array();
for(ban=0;ban<tot_ban;ban++){
listofimages[ban]=new Image();
listofimages[ban].src='banner-'+ban+'.gif';
}
sito=new Array();
sito[0]="http://www.pippo.it"
sito[1]="http://www.pluto.it"
sito[2]="http://www.paperino.it"
sito[3]="http://www.paperone.it"
num_ban=Math.floor(tot_ban*Math.random());
function changepage() {
window.open(sito[num_ban],'_blank','toolbar=1,menubar=1,status=1,location=1,scrollbars=1,resizable=1');
}
function changeimage() {
num_ban=(num_ban==tot_ban-1)?0:num_ban+1;
document.images['banner'].src=listofimages[num_ban].src
setTimeout('changeimage()', timer)
}
function writebanner() {
document.write('[img]'+listofimages[num_ban].src+'[/img]');
setTimeout('changeimage()', timer)
}
</script>
</head>
<body>
<script type="text/javascript">writebanner();</script>
</body>
</html>
ciao