»
AnglaisFrançaisVietnamien

Imprimer - Quiz script - JavaScriptBank.com

Version complète: jsB@nk » Utilitaire » Quiz » Quiz script
URL: https://www.javascriptbank.com/quiz-script.html

Quiz script © JavaScriptBank.comUtilisez cette JavaScript de créer des jeux-questionnaires pour les tutoriels, des cours en ligne, ou d'autres sujets.

Version complète: jsB@nk » Utilitaire » Quiz » Quiz script
URL: https://www.javascriptbank.com/quiz-script.html



JavaScript
<SCRIPT language=JavaScript1.2>var hotkey=27var destination="mainframe.htm"if (document.layers)document.captureEvents(Event.KEYPRESS)function backhome(e){if (document.layers){if (e.which==hotkey)window.location=destination}else if (document.all){if (event.keyCode==hotkey)window.location=destination}}document.onkeypress=backhome</SCRIPT><SCRIPT>var correctchoices=new Array()correctchoices[1]='a'correctchoices[2]='b'correctchoices[3]='a'correctchoices[4]='d'correctchoices[5]='b'correctchoices[6]='d'correctchoices[7]='c'correctchoices[8]='c'correctchoices[9]='a'correctchoices[10]='b'</SCRIPT><SCRIPT>var actualchoices=new Array()document.cookie="ready=yes"</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FONT face="Trebuchet MS" size=2>Klik op &#39;ESC&#39; op de quiz te beëindigen.</FONT><br><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>  <TBODY>  <TR>    <TD width="100%">      <FORM name=myquiz action=--WEBBOT-SELF-- method=POST>        <!--webbot bot="SaveResults" u-file="C:\Mijn documenten\WEBSITE\DHTML Games\_private\form_results.txt" s-format="TEXT/CSV" s-label-fields="TRUE" -->      <DIV align=center>      <CENTER>      <TABLE cellSpacing=0 cellPadding=0 width=600 border=0>        <TBODY>        <TR>          <TD vAlign=top align=left width=292>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>1) Wat zijn mijn hobby&#39;s?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Skaten</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[1]='a'" type=radio value=v1                         name=q1></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Voetballen</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[1]='b'" type=radio value=V2                         name=q1></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Ouwe hoeren</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[1]='c'" type=radio value=V3                         name=q1></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Meisjes versieren</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[1]='d'" type=radio value=V4                         name=q1></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>3) Welk eten vind ik lekker?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Pizza salami</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[3]='a'" type=radio value=V1                         name=q3></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Spruitjes</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[3]='b'" type=radio value=V2                         name=q3></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Patat</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[3]='c'" type=radio value=V3                         name=q3></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Boerenkool</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[3]='d'" type=radio value=V4                         name=q3></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>5) Welke skates vind ik het mooist?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE height=82 cellSpacing=0 cellPadding=0 width="100%"                   border=1>                    <TBODY>                    <TR>                      <TD width="89%" height=21><FONT face="Trebuchet MS"                         size=2>a) USD</FONT></TD>                      <TD width="11%" height=21><FONT face="Trebuchet MS"                         size=2><INPUT onclick="actualchoices[5]='a'" type=radio                         value=V1 name=q5></FONT></TD></TR>                    <TR>                      <TD width="89%" height=19><FONT face="Trebuchet MS"                         size=2>b) Rollerblade</FONT></TD>                      <TD width="11%" height=19><FONT face="Trebuchet MS"                         size=2><INPUT onclick="actualchoices[5]='b'" type=radio                         value=V2 name=q5></FONT></TD></TR>                    <TR>                      <TD width="89%" height=21><FONT face="Trebuchet MS"                         size=2>c) K2</FONT></TD>                      <TD width="11%" height=21><FONT face="Trebuchet MS"                         size=2><INPUT onclick="actualchoices[5]='c'" type=radio                         value=V3 name=q5></FONT></TD></TR>                    <TR>                      <TD width="89%" height=21><FONT face="Trebuchet MS"                         size=2>d) Roces</FONT></TD>                      <TD width="11%" height=21><FONT face="Trebuchet MS"                         size=2><INPUT onclick="actualchoices[5]='d'" type=radio                         value=V4               name=q5></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>7) Wat is mijn volledige naam?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Marc Hollander</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[7]='a'" type=radio value=V1                         name=q7></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Marc Sabastian Hollander</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[7]='b'" type=radio value=V2                         name=q7></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Marc Gerbrandt Hollander</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[7]='c'" type=radio value=V3                         name=q7></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Marc Hollander-Jansen</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[7]='d'" type=radio value=V4                         name=q7></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>9) Wat is mijn lieveling programma op TV?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Jackass</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[9]='a'" type=radio value=V1                         name=q9></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Goede Tijden Slechte Tijden</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[9]='b'" type=radio value=V2                         name=q9></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Cow &amp; Chicken</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[9]='c'" type=radio value=V3                         name=q9></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Big Brother the Battle</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[9]='d'" type=radio value=V4                         name=q9></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>          <TD vAlign=top align=left width=11></TD>          <TD vAlign=top align=left width=291>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>2) Waar houd ik niet van?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Spruitjes</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[2]='a'" type=radio value=V1                         name=q2></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Kamer opruimen</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[2]='b'" type=radio value=V2                         name=q2></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Hond uitlaten</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[2]='c'" type=radio value=V3                         name=q2></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Naar school gaan</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[2]='d'" type=radio value=V4                         name=q2></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>4) Welke drop vind ik lekker?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Muntdrop</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[4]='a'" type=radio value=V1                         name=q4></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Dropmix</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[4]='b'" type=radio value=V2                         name=q4></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Zoute drop</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[4]='c'" type=radio value=V3                         name=q4></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Honingdrop</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[4]='d'" type=radio value=V4                         name=q4></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>6) Welk vak op school vind ik het leukst?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Wiskunde</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[6]='a'" type=radio value=V1                         name=q6></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Techniek</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[6]='b'" type=radio value=V2                         name=q6></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Duits</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[6]='c'" type=radio value=V3                         name=q6></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Lichamelijke opvoeding</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[6]='d'" type=radio value=V4                         name=q6></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>8) Wat is mijn favoriete website?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) <A                         href="http://www.aggressive.com/">http://www.aggressive.com/</A>&nbsp;</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[8]='a'" type=radio value=V1                         name=q8></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) <A                         href="http://www.javascripts.com/">http://www.javascripts.com/</A>&nbsp;</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[8]='b'" type=radio value=V2                         name=q8></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) <A                         href="http://www.dynamicdrive.com/">http://www.dynamicdrive.com/</A>&nbsp;</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[8]='c'" type=radio value=V3                         name=q8></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) <A                         href="http://www.burnside.nl/">http://www.burnside.nl/</A>&nbsp;</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[8]='d'" type=radio value=V4                         name=q8></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>            <P>&nbsp;</P>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%"><STRONG><FONT face="Trebuchet MS" size=3>10) Wat is mijn favoriete voetballer?</FONT></STRONG></TD></TR>              <TR>                <TD width="100%">                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>                    <TBODY>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>a) Johan Cruiff</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[10]='a'" type=radio value=V1                         name=q10></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>b) Marco van Basten</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[10]='b'" type=radio value=V2                         name=q10></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>c) Marc Overmars</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[10]='c'" type=radio value=V3                         name=q10></FONT></TD></TR>                    <TR>                      <TD width="89%"><FONT face="Trebuchet MS" size=2>d) Diego Maradona</FONT></TD>                      <TD width="11%"><FONT face="Trebuchet MS" size=2><INPUT                         onclick="actualchoices[10]='d'" type=radio value=V4                         name=q10></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></CENTER></DIV></FORM></TD></TR></TBODY></TABLE><FORM action=--WEBBOT-SELF-- method=POST><DIV align=center><CENTER><P><!--webbot bot="HTMLMarkup" startspan --><SCRIPT language=JavaScript1.1>var incorrect=nullfor (t=1;t<=10;t++){for (t2=0;t2<=3;t2++)eval("document.myquiz.q"+t+"["+t2+"]").checked=false}function gradeit(){var incorrect=nullfor (i=1;i<=10;i++){if (actualchoices[i]!=correctchoices[i]){if (incorrect==null)incorrect=ielseincorrect+="/"+i}}if (incorrect==null)incorrect="a/b"document.cookie='q='+incorrectif (document.cookie=='')alert("Your browser does not accept cookies. Please adjust your browser settings.")elsewindow.location="resultaten.htm"}</SCRIPT><INPUT onclick=gradeit() type=button value="Quiz Resultaat !" name=B1></P></CENTER></DIV></FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->