var lista = new Array('1.jpg', '2.jpg', '3.jpg' , '4.jpg'); var contador = 0; var tiempo = 0; var tempor = null; function cambio(sen) { contador+= sen; if (contador ==lista.length) contador = lista.length-1; else if (contador < 0) contador = 0; document.images.centro.src = lista[contador] window.status="Imagen número "+contador } function reset() { contador = 0; fin = false; document.images.centro.src = lista[0] } function automat(seg) { tiempo = parseInt(seg); reset(); window.status="Pase automático"; if (isNaN(tiempo) || tiempo <= 0) alert("Error en el tiempo") else tempor = setTimeout("pasar()", tiempo) } function parar() { clearTimeout(tempor); } function pasar() { cambio(1); if (contador < lista.length-1) tempor = setTimeout("pasar()", tiempo) }
ÚLTIMOS VÍDEOS DEL GUIRRÍN... 1 2 3 4 5 6 7 8 9 10 11 12 13 ....
ÚLTIMOS VÍDEOS DEL GUIRRÍN... 1 2 3 4 5 6 7 8 9 10 11 12 13 ....