![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/07/2003, 18:29
|
![Avatar de nuevo](http://static.forosdelweb.com/customavatars/avatar34159_1.gif) | | | Fecha de Ingreso: mayo-2003 Ubicación: Spain
Mensajes: 2.009
Antigüedad: 21 años, 8 meses Puntos: 2 | |
si seria solo reconvertir este script, para que muestre los dias, horas, minutos y segundos hacia atras---, este solo muestra los segundos... y yo de java no me entero ni papa
<html>
<head>
<SCRIPT>
var interval = "";
var i = 5;
function startInterval(){
interval = window.setInterval("tTimer()",1000);
}
function stopInterval(){
window.clearInterval (interval);
interval="";
}
function tTimer(){
document.f.display.value = i--;
if (i == -1)
{
stopInterval();
alert ("tiempo terminado");
}
}
</SCRIPT>
</head>
<body>
<form name=f>
<input type=text name=display value="">
</form>
<script>
startInterval();
</script>
</body>
</html>
Última edición por nuevo; 26/07/2003 a las 19:36 |