Código:
gracias de antemano <html> <head> <title>Documento sin tí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>