Ver Mensaje Individual
  #12 (permalink)  
Antiguo 12/07/2004, 14:51
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 5 meses
Puntos: 61
Modifica la función abrir así:
<html>
<head>
<title>Untitled</title>
<script>
function abrir(){
ventanota=window.open("", "", "");
setTimeout("if(ventanota && !ventanota.closed){ventanota.close()}",3600000);
}
ahora = new Date();
luego = new Date();
luego.setHours(19);
luego.setMinutes(0);
luego.setSeconds(0);
espera=luego.getTime() - ahora.getTime();



</script>

</head>

<body onload="if(espera>=0){setTimeout('abrir()', espera)}">



</body>
</html>
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.

Última edición por KarlanKas; 12/07/2004 a las 15:00