- CREARE BANNER
scrip:
<html>
<head>
<script language=”JavaScript”>
<!–
var i = 1;
banner1= new Image();
banner1.src = “LINCK IMMAGINE1″;
banner2 = new Image();
banner2.src = “LINCK IMMAGINE1″;
banner3 = new Image();
banner3.src = “LINCK IMMAGINE1″;
banner4 = new Image();
banner4.src = “LINCK IMMAGINE1″;
banner5 = new Image();
banner5.src = “LINCK IMMAGINE1″;/* ATTENZIONE:per aumentare le immagini copia un modello cambia il numero e prosegui fino al prossimo commento che va ancora modificato un altro parametro*/
var links = new Array
links[1] = “”
links[2] = “”
links[3] = “”
links[4] = “”
links[5] = “”
/*ogni immagine puo avere un linck diverso se preferisci che sia un banner unico inserisci lo stesso linck ovunque (ATTENZIONE: se vuoi aumentare il numero di immagini devi aumentare il numero di lincks)*/var description = new Array
description[1] = “nome banner1″
description[2] = “nome banner2″
description[3] = “nome banner3″
description[4] = “nome banner4″
description[5] = “nome banner5″/*(ATTENZIONE: se vuoi aumentare il numero di immagini devi aumentare il numero di nomi)*/function loadBanner(){ var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=2; /* ATTENZIONE:numero per aumentare la velocita di riproduzione delle immagini*/
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (i < 5){ /*ATTENZIONE: il numero qua a sinistra ( 5 ) deve essere pari al numero di immagini che inserirete*/
i++;
document.banner.src = eval(“banner” + i + “.src”);
}
else{
i = 1;
document.banner.src = eval(“banner” + i + “.src”);
}
loadBanner();
}
else{
window.setTimeout(“Timer()”,1000)}
}
function clickLink(){
top.location = links[i]
}
function descript(){
window.status = description[i]
}
function nothing() {
window.status=”"
}
–>
</script>
</head>
<body bgcolor=”FFFFFF”onload=”loadBanner();”>
<script language=”javascript”>
<!–
var nav = (document.layers) ? true : false;
var iex = (document.all) ? true : false;
if(iex) document.write(‘<div style=”position:absolute; ID:banner; left:453px; top:16; width:468px; height:60px;/*ATTENZIONE: QUI A SINISTRA CI SONO I PARAMETRI PER MODIFICARE LE DIMENSIONI DEL BANNER WIDHT è LA LUNGHEZZA L’ALTRO è L’ALTEZZA */ visibility:visible; z-index:100″ ><a href=”" onClick=”clickLink(); return false;” onMouseOver=”descript(); return true;”onmouseout=”nothing()”><img src=”prog.jpg” border=0 name=”banner” width=”468″ height=”60″></a></div>’)
if(nav) document.write(‘<layer left=”500″ top=”16″ width=”468″ height=”60″ z-index=”100″ visibility=”show” ID=”banner” ><a href=”" onClick=”clickLink(); return false;” onMouseOver=”descript(); return true;” onmouseout=”nothing()”><img src=”prog.jpg” border=0 name=”banner” width=”468″ height=”60″></a></layer>’)
–>
</script>
</body>
</html>