
15/02/2008, 15:44
|
| | Fecha de Ingreso: abril-2007
Mensajes: 66
Antigüedad: 17 años, 11 meses Puntos: 0 | |
Re: conteo regresivo y enviar datos asi es pero me bota el erro que te comente te dejo todo el codigo
<!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=utf-8" />
<title>Documento sin título</title>
<script>
var timeLimit = 1; //t15iempo en minutos
var conteo = new Date(timeLimit * 30000);
function inicializar(){
document.getElementById('cuenta').childNodes[0].nodeValue =
conteo.getMinutes() + ":" + conteo.getSeconds();
}
function cuenta(){
intervaloRegresivo = setInterval("regresiva()", 1000);
} function regresiva(){
if(conteo.getTime() > 0){
conteo.setTime(conteo.getTime() - 1000);
}else{
clearInterval(intervaloRegresivo);
//alert("Fin");
document.encuesta.submit();
//document.getElementById('encuesta').submit();
}
document.getElementById('cuenta').childNodes[0].nodeValue =
conteo.getMinutes() + ":" + conteo.getSeconds();
}
onload = inicializar;
</script>
</head>
<body onload="cuenta();">
<div id=cuenta >0</div>
<form method="post" action="cuenta1.php" name="encuesta">
<input name="p1" type="radio" value="a" />
<input name="p1" type="radio" value="b" />
<input name="p1" type="radio" value="c" />
<input name="submit" type="submit" value="Enviar" id="submit"/>
</form>
</body>
</html> |