Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/08/2004, 17:11
orharo2003
 
Fecha de Ingreso: abril-2004
Ubicación: México D.F.
Mensajes: 1.724
Antigüedad: 20 años, 1 mes
Puntos: 4
Pon un contador regresivo con la hora actual + o - así:

Ojo, este código solo pasalo a las respectivas instrucciones de Jscript, o si lo quieres para I.E. funciona excelente.


<script language="vbs">
alert "You just have 20 minutes to complete this test. A timer will be displayed on the status bar and you will be warned next 10 minutes.Do not spend more than 1 minute in each sentence.So now that It is clearer do your best!!!"
dim min,seg
min=19
seg=60
function clockid()
seg=seg-1
if(seg<10)then
seg="0"&seg
end if
if(seg=0)then
seg=59
min=min-1
end if
if(min=10 and seg=59)then
msgbox "Within 10 minutes your exam will be sent. Please take care of your time",vbinformation,"Orharo2003"
end if
if(min=-1 and seg=59)then
msgbox "Your exam will be sent by now",vbexclamation,"Orharo2003"
window.navigate "resultado.asp"
end if
window.status="This is your time : 00 : " & min &" : " & seg & " of 00 : 20 : 00 "
settimeout "clockid()",1000
end function
clockid()
</script>