
| |||
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> |
| ||||
Oharro estube probando tu script y lo modifique a mis necesidades pero cuando refresco la pagina comienza desde el tiempo de inicio, deberia de guardar el tiempo que se lleva en una cookies o algo parecido y cadca vez que refresque o recarguen la pagina, empieze en el tiempo quie iva.... |