Jump to content

[SOLVED] ExamCenter with time!!! please help me


Guest

Recommended Posts

Hello captains'

could be included in the exam center time for each question?

Example:

The pilot asks his take on the central of the pilot, when you open the pilot test would be required to have 10 to 15 minutes to perform this examination.

PLEASE HELP ME!!

Link to comment
Share on other sites

  • 1 month later...

You may do this with javascript :)

<script type = "text/javascript">

var parselimit = 110;
function submitForm() {
document.forms[0].submit();
alert ("Your Exam has been submited due to your time limit.");
}

function begintimer(){
if (!document.images){return}
if (parselimit==1){
submitForm(); 
}
else {
parselimit --;
curhr=Math.floor(parselimit/3600);
curmin=Math.floor(parselimit/60);
curmin=curmin-(curhr*60);
cursec=parselimit%60;
if (curhr!=0) {
curtime=curhr+" hr: "+curmin+" min: "+cursec+" sec";
}
else if (curmin!=0) {
curtime=curmin+" min: "+cursec+" sec";
}
else {
curtime=cursec+" seconds left" ;
}
window.status=curtime;

tim = setTimeout("begintimer()",1000);
thelement.innerHTML="<b style='font-size:14;color:red;'>"+curtime+"</b>"
}
}

</script>

And then don't forget to use the

<body onload = "begintimer()">

Let me know if it all worked out for you! If not we can try to find the issue :)

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...