Rotación banners (permite poner tantos banners como quieras, permite definir texto, imagen origen, link de destino, alto y anchura de imagen)
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin var how_many_ads = 3; var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (ad==1) { txt="Una de las mejores webs"; url="http://www.webadicta.tk"; alt="...::: www.webadicta.tk :::..."; banner=" aqui url de banner "; width="468"; height="60"; } if (ad==2) { txt="Informática y videojuegos"; url="http://www.webadicta.tk/"; alt="webadicta.tk"; banner="http://etc, etc"; width="468"; height="60"; } if (ad==3) { txt="visita WebAdicta.tk"; url="http://www.webadicta.tk/"; alt="WebAdicta.tk"; banner="http://"; width="468"; height="60"; } document.write('<center>'); document.write('<a href="' + url + '" target="_blank">'); document.write('<img src="' + banner + '" width=') document.write(width + ' height=' + height + ' '); document.write('alt="' + alt + '" border=0><br>'); document.write('<small>' + txt + '</small></a>'); document.write('</center>'); // End --> </SCRIPT>
Banner aleatorio
<script language="JavaScript"> <!-- Hide this script from old browsers -- function create() { this.width = '' this.height = '' this.src = '' this.href = '' this.border = '' this.mouseover = '' } function random(n) { var js_mult1=3141 var js_mult2=5821 var js_m1=100000000 var js_m2=10000 var js_iseed=0 var js_iseed1=0 var js_iseed2=0 if (js_iseed == 0) { now = new Date() js_iseed = now.getHours() + now.getMinutes() * 60 + now.getSeconds() * 3600 } js_iseed1 = js_iseed / js_m2 js_iseed2 = js_iseed % js_m2 var tmp = (((js_iseed2 * js_mult1 + js_iseed1 * js_mult2) % js_m2) * js_m2 + (js_iseed2 * js_mult2)) % js_m1 js_iseed = (tmp + 1) % js_m1 return (Math.floor((js_iseed/js_m1) * n)) } var numberOfAds = 3 //number or ads you want to display ads = new Array() for(var i=1; i<=numberOfAds; i++) { ads[i] = new create() } ads[1].width = "468" ads[1].height = "60" ads[1].src = "http://www.WebAdicta.tk/imagenes/b-txwe2.gif" ads[1].href = "http://www.WebAdicta.tk" ads[1].border = "0" ads[1].mouseover = "Ven a webadicta.tk" ads[2].width = "468" ads[2].height = "60" ads[2].src = "http://www.WebAdicta.tk/imagenes/b-carrux.gif" ads[2].href = "http://www.WebAdicta.tk/carruxel" ads[2].border = "0" ads[2].mouseover = "Visita El CarruXel Erotico." var n = random(numberOfAds) n = (n==0) ? n+1 : n n = (n > numberOfAds) ? n-numberOfAds : n var image = ads[n] var ad = "" ad += '<a href="' + image.href + '" n' ad += 'onMouseOver="self.status='' + image.mouseover + '';return true" n' ad += 'onMouseOut="self.status=''"> n' ad += '<img src="' + image.src + '" width=' + image.width ad += 'n height=' + image.height + ' border=' + image.border ad += 'n></a>' // -- End Hiding Here --> </script>
Para llamar al banner
<script language="JavaScript"> <!-- Hide this script from old browsers -- document.write(ad) // -- End Hiding Here --> </script>
Sube tu foto: