Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/09/2015, 06:25
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Protector de Pantalla Web

esto te dará la idea fe partida
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <style type="text/css">
  5. #expirado {
  6.     display: none;
  7.     width: 200px;
  8.     height: 200px;
  9. }
  10. <script type="text/javascript">
  11. var tstampActual = 0;
  12. var comprobar = 10000;
  13.  
  14. function actividad() {
  15.  
  16. var tstamp = new Date().getTime();
  17.  
  18.     if (Math.abs(tstampActual - tstamp) > comprobar) {
  19.  
  20.         document.getElementById('expirado').style.display = 'inline';
  21.    
  22.     } else {
  23.  
  24.         document.getElementById('expirado').style.display = 'none';
  25.    
  26.     }
  27. }
  28.  
  29.    
  30. window.addEventListener('load', function() {
  31.  
  32.     document.body.addEventListener('mousemove', function() {
  33.  
  34.         tstampActual = new Date().getTime();
  35.  
  36.     }, false);
  37.  
  38.     setInterval(actividad, comprobar);
  39. });
  40.  
  41.  
  42. </head>
  43.  
  44. <div id="expirado">El tiempo ha expirado</div>
  45.  
  46. </body>
  47. </html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}