manufacturer=navigator.appName; version=navigator.appVersion if (manufacturer.indexOf('Microsoft')<0) { alert('You do not appear to have a compatible browser. This type of quiz is designed to run only with Internet Explorer 4 or higher.'); } var i=0; var t=12; questions=new Array(13); Answers=new Array(13); aposstr=new String; speechstr=new String; aposstr="'"; speechstr='"'; for (var x=0; x<13;x++) { Answers[x]=""; } CorrectAns=new Array(13); Explanation=new Array(13); CorrectAns[0]="a"; Explanation[0]="a. "; CorrectAns[1]="b"; Explanation[1]="à. "; CorrectAns[2]="avait"; Explanation[2]="avait. "; CorrectAns[3]="a"; Explanation[3]="a. "; CorrectAns[4]="à"; Explanation[4]="à. "; CorrectAns[5]="à"; Explanation[5]="à. "; CorrectAns[6]="a"; Explanation[6]="a. "; CorrectAns[7]="b"; Explanation[7]="sont. "; CorrectAns[8]="déterminant"; Explanation[8]="déterminant. "; CorrectAns[9]="son"; Explanation[9]="son. "; CorrectAns[10]="sont"; Explanation[10]="sont. "; CorrectAns[11]="b"; Explanation[11]="sont. "; function checkThisBut(questionnum,qtype,tocheck){ if (qtype==0) { if (tocheck==0) Answers[questionnum]="a"; if (tocheck==1) Answers[questionnum]="b"; if (tocheck==2) Answers[questionnum]="c"; if (tocheck==3) Answers[questionnum]="d"; } if (qtype==1) { if (tocheck==0) Answers[questionnum]="true"; if (tocheck==1) Answers[questionnum]="false"; } } function isChecked(qnum,ansvalue) { if (Answers[qnum]==ansvalue) { return " checked "; } else { return ""; } } function setTextValue(qnum) { return Answers[qnum]; } function specifyAnswer(qnum) { changeQuestion(qnum+1); } function specifyText(qnum) { Answers[qnum]=form1.box1.value; changeQuestion(qnum+1); } function checkForReturn(qnumber,type) { if (event.keyCode==13) { if (type==1) specifyText(qnumber) else specifyAnswer(qnumber); } } function previousAnswer(qnum) { if (qnum-1<0) { alert("This is the first question in the quiz. You cannot go back any further. If you want to restart the quiz then press your browser's refresh button."); } else changeQuestion(qnum-1); } function previousText(qnum) { Answers[qnum]=form1.box1.value; changeQuestion(qnum-1); } function changeQuestion(qnum) { if (qnum>=0) { objQuizForm=document.all["quizform"]; } else alert("This is the first question in the quiz. You cannot go back any further. If you want to restart the quiz then press your browser's refresh button."); questions[0]='
' questions[1]=' ' questions[2]=' ' questions[3]=' ' questions[4]=' ' questions[5]=' ' questions[6]=' ' questions[7]=' ' questions[8]=' ' questions[9]=' ' questions[10]=' ' questions[11]='réponses...
"); var currentScore=0; for (var y=0; y<12;y++) { tempAns= new String; tempCorrect= new String; tempAns= Answers[y]; tempCorrect= CorrectAns[y]; if (tempAns.toLowerCase()==tempCorrect.toLowerCase()) { currentScore=currentScore+1; } } document.write("Vous avez fait "+currentScore.toString()+" sur 12."); for (var y=0; y<12;y++) { var realy=y+1; tempAns= new String; tempCorrect= new String; tempAns= Answers[y]; tempCorrect= CorrectAns[y]; if (tempAns.toLowerCase()==tempCorrect.toLowerCase()) { document.write("
Question "+realy.toString()+" - Correct.
"); } else { document.write("Question "+realy.toString()+" - Faux. La bonne réponse était: "+Explanation[y]+"
"); } } document.write('