Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
sessions:galanet:qcm_galanet_entre_lyon_et_barcelone [09/04/2010 12:56] – créée mmarinee | sessions:galanet:qcm_galanet_entre_lyon_et_barcelone [24/11/2022 05:34] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
< | < | ||
< | < | ||
- | < | + | < |
- | + | Quelle ville suis je ?</ | |
- | | + | |
- | </ | + | |
<SCRIPT languag=" | <SCRIPT languag=" | ||
< | < | ||
- | function verifiecree(fo) | ||
- | { | ||
- | if (fo.question.value) | ||
- | { | ||
- | alert(" | ||
- | return false; | ||
- | } | ||
- | else | ||
- | { | ||
- | if (fo.nbreponses.value) | + | // Copyright Cyril Roiron |
- | { | + | // All rights reserved |
- | alert(" | + | |
- | return false; | + | |
- | } | + | |
- | this.document.formulaire.action=" | + | |
- | return true; | + | var ttok="" |
- | + | ||
- | } | + | |
- | | + | |
- | } | + | // les tablos necessaires |
+ | var question = new Array(); | ||
- | function verifievalid(fo) | + | var a=0; |
- | { | + | var b=0; |
- | | + | var x=0; |
- | if (fo.titre.value=="" | + | var m=0; |
- | { | + | |
- | ttok=" | + | |
- | | + | |
- | { | + | |
- | ttok=" | + | |
- | } | + | |
- | else { | + | |
- | if (fo.question.value.indexOf('"' | + | |
- | { | + | |
- | ttok=" | + | |
- | } | + | |
- | else | + | |
- | { | + | |
- | | + | |
- | if (isNaN(bou)) | + | |
- | { | + | |
- | ttok=" | + | |
- | } | + | |
- | else { | ||
- | if (fo.nbreponses.value < 2) | ||
- | { | ||
- | ttok=" | ||
- | } | ||
- | } | ||
- | } | ||
- | } | ||
- | | ||
- | | ||
- | if (ttok != "" | ||
- | { | ||
- | alert(ttok); | ||
- | return false; | ||
- | } | ||
- | else | ||
- | { | ||
- | document.formulaire.nbreponses.value=Math.round(fo.nbreponses.value); | ||
- | return true; | ||
- | } | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | m++; | ||
+ | question[m] = "Lyon ou Barcelone ?" | ||
+ | // les tablos necessaires | ||
+ | var f_b = new Array(); | ||
+ | var correct = new Array(); | ||
+ | var rep = new Array(); | ||
+ | // crée la fenètre principale avec son contenu | ||
+ | function creefenetre(contenu, | ||
+ | { | ||
+ | var cc = contenu; | ||
+ | contenu = "< | ||
+ | contenu | ||
+ | } | ||
+ | function verifier(yo) | ||
+ | { | ||
+ | var resultat=""; | ||
+ | var erreur=0; | ||
+ | |||
+ | for (var n=0; n < (question.length); | ||
+ | { | ||
+ | if (!rep[n]) | ||
+ | { | ||
+ | ttok=ttok+" | ||
+ | ttok=ttok+"'" | ||
} | } | ||
- | var questionuser=""; | + | else { |
- | var pasassez=0; | + | if(correct[n] == 1) |
- | var vraicentre=0; | + | { |
+ | rep[n]="<font color='# | ||
+ | // | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | rep[n]="< | ||
+ | erreur++; | ||
+ | } | ||
+ | resultat+="< | ||
+ | } | ||
+ | } | ||
+ | if (ttok != "" | ||
+ | { alert(ttok); | ||
+ | else { | ||
+ | if (erreur==0) | ||
+ | { | ||
+ | resultat+="< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if (erreur==1) | ||
+ | { | ||
+ | resultat+="< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | resultat+="< | ||
+ | } | ||
+ | } | ||
+ | for (var i=0; i< | ||
+ | { | ||
+ | yo.elements[i].checked = 0; | ||
+ | } | ||
+ | |||
+ | creefenetre(resultat, | ||
+ | |||
+ | } | ||
+ | } | ||
Ligne 90: | Ligne 140: | ||
</ | </ | ||
- | <SCRIPT languag=" | ||
- | < | ||
- | // --> | ||
- | </ | ||
</ | </ | ||
- | <BODY bgcolor=" | + | <BODY bgcolor=" |
- | <H2 align=center> | + | |
- | < | + | |
- | <FORM METHOD=" | + | <H2 align=center> |
+ | Quelle ville suis je ?</H2> | ||
- | <b>Attention:</b> A partir d'un certain nombre de questions (plus de 6-7), <a href="/~roiron/">je</a> ne garantis plus rien ...<p>Titre du QCM: | + | <form name=" |
- | < | + | <hr> |
- | Le feed-back à l' | + | <img src="http://www.u2achtung.com/ |
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | x=0; | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <br> | ||
+ | <input type=" | ||
- | <br> Dans une nouvelle fenêtre | + | <script language="JavaScript"> |
- | < | + | < |
- | <p> | + | |
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
< | < | ||
< | < | ||
- | ouvresi('debut.htm') | + | document.write(question[1].bold()); |
// | // | ||
</ | </ | ||
- | Question 1: | + | < |
- | < | + | < |
- | <input type="hidden" | + | <script language=" |
- | <br> | + | <!-- |
- | <table border=0 width=" | + | x=0; |
- | <tr> | + | |
- | <td width=" | + | //--> |
- | Nombre de r& | + | </script> |
+ | |||
+ | <br> | ||
+ | < | ||
- | </td> | + | <script language=" |
- | <td align="right"> | + | < |
- | Facultatif: URL d'une image < | + | |
- | </td> | + | |
- | </tr> | + | //--> |
- | </table> | + | </ |
+ | |||
+ | <hr> | ||
+ | <img src="http:// | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | | ||
+ | //--> | ||
+ | </script> | ||
+ | |||
+ | <br> | ||
+ | < | ||
- | < | + | <script language=" |
- | <table border=0 width="90%"> | + | < |
- | <tr align=center> | + | |
- | <td> | + | |
- | < | + | // |
- | </td> | + | </ |
- | <td> | + | |
+ | <hr> | ||
+ | <img src="http:// | ||
+ | <script language=" | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | | ||
+ | //--> | ||
+ | </script> | ||
+ | |||
+ | <br> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | x++; | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | x=0; | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
- | </td> | + | <script language=" |
- | </tr> | + | < |
- | </table> | + | |
+ | | ||
+ | //--> | ||
+ | </script> | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | x++; | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | x=0; | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
- | </FORM> | + | <script language=" |
+ | < | ||
+ | | ||
+ | | ||
+ | //--> | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | < | ||
+ | < | ||
+ | <!-- | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <hr> | ||
+ | |||
- | Pour en savoir plus sur ce g& | + | <p align=center> |
+ | <input type=button value=" | ||
+ | </ | ||
</ | </ | ||
</ | </ | ||