Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/01/2013, 09:11
Avatar de dontexplain
dontexplain
 
Fecha de Ingreso: junio-2012
Mensajes: 536
Antigüedad: 11 años, 10 meses
Puntos: 127
Respuesta: crear temporizador y alert

Tampoco es excesivamente difícil.

Por ejemplo, improvisando un poco, html por un lado

Código HTML:
Ver original
  1. <div id='i'>60</div>

y el js por el otro

Código Javascript:
Ver original
  1. c = 60;
  2. int = setInterval(function(){
  3.     c--;
  4.     document.getElementById('i').innerHTML = c;
  5.     if(c == 0){
  6.         alert('Alerta');
  7.                 clearInterval(int);
  8.     }
  9. },1000);

Y resuelto en 30 segundos.

Un saludo.
__________________
21añero.
HTML/CSS, PHP, JS/jQuery, Mysql; NodeJS/Socket.io (& V8); C++ ; Python (wxpy); Ensamblador.
Músico (clarinetista/pianista) y compositor