<script language="JavaScript" type="text/javascript">
var RITARDO_SECONDI = 8; //ritardo in sec., banner change time
var idLink = "myLink"; //id del tag <a> che contiene l'img, id of tag <a> that contains the img.
var vettoreBanner =
new Array
(
new Array("http://www.clickpoint.it/db/goto.cp?PRO=18284&ID=6400&SUB"),
new Array("http://www.clickpoint.it/db/goto.cp?PRO=18600&ID=6790&SUB"),
new Array("http://www.clickpoint.it/db/goto.cp?PRO=18601&ID=6752&SUB")
);
window.onload = function randomBanner()
{
ruotaBanner(); //Inserisce il primo banner , inserts the 1st banner
setInterval("ruotaBanner();", RITARDO_SECONDI * 1000); //funzione ogni tot secondi (vedi riga 6) function after N seconds (see line 6)
}
function ruotaBanner() {
var rnd = Math.floor(Math.random() * vettoreBanner.length); //Random number, numero random
//Cambia li link e l'immagine del banner, changes link and banner's image.
document.getElementById(idLink).href = vettoreBanner[rnd][0];
}
</script> Tuo testo



Così cambia solo il link