Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/08/2014, 15:29
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Como Programar Contador Regresivo que sea Repetitivo

tienes que apoyarte en la recursividad y en el operador mod
Cita:
(function recursivo(min, max, taim) {

setTimeout(function() {
document.getElementById('objeto').textContent = Math.abs((min % (max+1)) - max);
recursivo(++min, max, taim);
}, taim);

})(0, 8, 1000);
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}