Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/07/2009, 10:53
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 15 años
Puntos: 45
Respuesta: cuenta regresiva

Hola parcialbook

Quizás este javascript te pueda servir:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Al terminar la cuenta atrás será</title>
</head>

<body>
<p>Al terminar la cuenta atrás serás redireccionado</p>
<form name="redirect">
	<input type="text" size="3" name="redirectto" />
</form>

<script type="text/javascript">
<!--

var targetURL="http://www.google.com" //dirección de destino

var countdownfrom=10 //duración en segundos de la cuenta atrás

var currentsecond=document.redirect.redirectto.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirectto.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script>

</body>

</html> 
Cuéntanos.

Bye