Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/11/2010, 11:12
Drakos
 
Fecha de Ingreso: noviembre-2010
Mensajes: 2
Antigüedad: 13 años, 6 meses
Puntos: 0
ayuda imagen inexistente

ola necesitaba hacer una pekeña galeria que mostrase un conjunto de x imagenes pero al llegar a la ultima y empezar aparece una imagen que no deberia alguien puede ayudarme? gracias aqui dejo todo el codigo

Código:
<html> 
<head> 

<title>Documento sin t&iacute;tulo</title> 

<link href="dolors.css" rel="stylesheet" type="text/css"> 

<style type="text/css">

div{

}
table
{
border:5px solid red;
}
td
{
border:3px solid red;
height:322px;
}
</style> 

<script language="javascript"> 

cont=0; 
contador=1;
sumador=2;
function rotador() {

cont++
setTimeout("rotador()", 2000);
if(cont >5){ cont = 0}
document.getElementById("imagen").src="imagenes/foto"+cont+".jpg";
contador++
if(contador >5){contador = 0}
document.getElementById("imagen2").src="imagenes/foto"+contador+".jpg";
sumador++
if(sumador >5){sumador = 0}
document.getElementById("imagen3").src="imagenes/foto"+sumador+".jpg";}


</script> 


</head> 


<body  onLoad="rotador();"> 
<div>
<table>
<tr>
<td>
<img id="imagen" width="200" />
</td>
<td>
<img id="imagen2" width="200" />
</td>
<td>
<img id="imagen3" width="200" />
</td>
</tr>
</table>
</div>
</body> 
</html>
gracias de antemano