Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/07/2011, 13:42
dakeym
 
Fecha de Ingreso: febrero-2011
Mensajes: 25
Antigüedad: 13 años, 2 meses
Puntos: 0
rotador de banners para web

Hola quiero poner un rotador de banners en la web, he buscado y he localizado éste rotador por si a alguien tambien le sirve.
Tengo los codigos de los banners pero nosé donde los tengo que poner, dejo el rotador y los banners por si alguien me puede echar una mano.

Codigos banners:

<a href="http://ad.zanox.com/ppc/?18937584C812496908T"><img src="http://ad.zanox.com/ppv/?18937584C812496908" align="bottom" width="728" height="90" border="0" hspace="1" alt="GIF nomina Rock 728x90"></a>

<a href="http://ad.zanox.com/ppc/?18937567C1024454445T"><img src="http://ad.zanox.com/ppv/?18937567C1024454445" align="bottom" width="728" height="90" border="0" hspace="1" alt="GIF 15 por ciento Descuento 728x90"></a>

<a href="http://ad.zanox.com/ppc/?18937625C1240585342T"><img src="http://ad.zanox.com/ppv/?18937625C1240585342" align="bottom" width="728" height="90" border="0" hspace="1" alt="GIF La del 4 Nokia X7 728x90"></a>




Rotador de banners:

<html>
<head>
<title>TITULO</title>
</head>
<body>

<script language="JavaScript">
<!--

var cantbanners = 3 ;
var ahora = new Date()
var segundos = ahora.getSeconds()
var banner = segundos % cantbanners;
banner +=1;

if (banner==1) {
texto=" Texto descriptivo de banner1 ";
url=" http://www.banner1.com ";
alt=" Texto alternativo1 ";
imagen=" imagenes/banner1.gif ";
width=" 468 ";
height=" 60 ";
}
if (banner==2) {
texto=" Texto descriptivo de banner2 ";
url=" http://www.banner2.com ";
alt=" Texto alternativo2 ";
imagen=" imagenes/banner2.gif ";
width=" 468 ";
height=" 60 ";
}
if (banner==3) {
texto=" Texto descriptivo de banner3 ";
url=" http://www.banner3.com ";
alt=" Texto alternativo3 ";
imagen=" imagenes/banner3.gif ";
width=" 468 ";
height=" 60 ";
}

document.write('<center>');
document.write('<a href="' + url + '" target="_blank">');
document.write('<img src="' + imagen + '" width=')
document.write( width + ' height=' + height + ' ');
document.write('alt="' + alt + '" border=0><br>');
document.write('<small>' + texto + '</small></a>');
document.write('</center>');

//-->
</script>

</body>
</html>


Gracias y un saludo.