Vrée un qcm/formulaire pour site
rémoundo
Messages postés
408
Date d'inscription
Statut
Membre
Dernière intervention
-
adns Messages postés 1094 Date d'inscription Statut Membre Dernière intervention -
adns Messages postés 1094 Date d'inscription Statut Membre Dernière intervention -
Bonjour,je suis nouveau dans le monde du html/php et voudrai savoir comment crée un quiz avec correction car j'ai trouvé le générateur de quiz = http://usinaquiz.free.fr/autre/frqcm1.htm mais quand j'ai crée mon quiz ,que je l'insert dans ma page je je fais le quiz et après il y a un bouton a la fin avec marquer correction mais quand je clique rien ne se passe ?! si ce n'es que sa comment faire
merci de vos futures réponse (je l'espère)
merci de vos futures réponse (je l'espère)
A voir également:
- Vrée un qcm/formulaire pour site
- Whatsapp formulaire opposition - Guide
- Site de telechargement - Accueil - Outils
- Site comme coco - Accueil - Réseaux sociaux
- Site pour vendre des objets d'occasion - Guide
- Site pour partager des photos - Guide
15 réponses
Bonjour
les quiz générés sur le lien fournis sont en html et javascript
je viens d'en tester un et au fur et a mesure que tu répond il te donne ton score et les réponses,
a la fin le bouton résultat te donne ton score final
Si pour toi rien ne se passe regard si ton javascript n'est pas désactiver sinon essaie de le mettre tout seul dans une page html ;)
Adns
les quiz générés sur le lien fournis sont en html et javascript
je viens d'en tester un et au fur et a mesure que tu répond il te donne ton score et les réponses,
a la fin le bouton résultat te donne ton score final
Si pour toi rien ne se passe regard si ton javascript n'est pas désactiver sinon essaie de le mettre tout seul dans une page html ;)
Adns
il me met sa dans le code :
// ======================================================
// ligne qui suit à modifier pour envoyer le formulaire
// (mais indiquez la méthode dans la balise du formulaire) :
// document.quest.submit()
// ligne qui suit pour vider le formulaire :
faite = new Array;
score = 0;
}
// --></script>
</HEAD>
<BODY bgcolor="BLACK" text="WHITE">
<h1>QUIZZ</h1><h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br>
Bonne chance !</h4>
<p><NOSCRIPT>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</NOSCRIPT> </p>
// ======================================================
// ligne qui suit à modifier pour envoyer le formulaire
// (mais indiquez la méthode dans la balise du formulaire) :
// document.quest.submit()
// ligne qui suit pour vider le formulaire :
faite = new Array;
score = 0;
}
// --></script>
</HEAD>
<BODY bgcolor="BLACK" text="WHITE">
<h1>QUIZZ</h1><h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br>
Bonne chance !</h4>
<p><NOSCRIPT>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</NOSCRIPT> </p>
alors la sa marche = http://nintenquiz.webnode.com/nintenquiz/ mais c'est un "patron" a modifier je vais voir si sa marche
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
je ne fais que modifier =)
j'essaye tout ,en vain
j'ai remis tout sa dans ma page
<h1>QUIZZ</h1>
<h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br />
Bonne chance !</h4>
<p><noscript>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</noscript> </p>
<form name="quest">
<font color="YELLOW">1 </font>Question1<br />
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)" /><font color="RED"> a </font>Réponse1a<br />
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)" /><font color="RED"> b </font>Réponse1b<br />
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)" /><font color="RED"> c </font>Réponse1c<br />
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)" /><font color="RED"> d </font>Réponse1d<br />
<br />
<font color="YELLOW">2 </font>Question2<br />
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)" /><font color="RED"> a </font>Réponse2a<br />
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)" /><font color="RED"> b </font>Réponse2b<br />
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)" /><font color="RED"> c </font>Réponse2c<br />
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)" /><font color="RED"> d </font>Réponse2d<br />
<br />
<font color="YELLOW">3 </font>Question3<br />
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)" /><font color="RED"> a </font>Réponse3a<br />
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)" /><font color="RED"> b </font>Réponse3b<br />
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)" /><font color="RED"> c </font>Réponse3c<br />
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)" /><font color="RED"> d </font>Réponse3d<br />
<br />
<font color="YELLOW">4 </font>Question4<br />
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)" /><font color="RED"> a </font>Réponse4a<br />
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)" /><font color="RED"> b </font>Réponse4b<br />
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)" /><font color="RED"> c </font>Réponse4c<br />
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)" /><font color="RED"> d </font>Réponse4d<br />
<br />
<font color="YELLOW">5 </font>Question5<br />
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)" /><font color="RED"> a </font>Réponse5a<br />
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)" /><font color="RED"> b </font>Réponse5b<br />
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)" /><font color="RED"> c </font>Réponse5c<br />
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)" /><font color="RED"> d </font>Réponse5d<br />
<br />
<font color="YELLOW">6 </font>Question6<br />
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)" /><font color="RED"> a </font>Réponse6a<br />
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)" /><font color="RED"> b </font>Réponse6b<br />
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)" /><font color="RED"> c </font>Réponse6c<br />
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)" /><font color="RED"> d </font>Réponse6d<br />
<br />
<font color="YELLOW">7 </font>Question7<br />
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)" /><font color="RED"> a </font>Réponse7a<br />
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)" /><font color="RED"> b </font>Réponse7b<br />
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)" /><font color="RED"> c </font>Réponse7c<br />
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)" /><font color="RED"> d </font>Réponse7d<br />
<br />
<font color="YELLOW">8 </font>Question8<br />
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)" /><font color="RED"> a </font>Réponse8a<br />
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)" /><font color="RED"> b </font>Réponse8b<br />
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)" /><font color="RED"> c </font>Réponse8c<br />
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)" /><font color="RED"> d </font>Réponse8d<br />
<br />
<font color="YELLOW">9 </font>Question9<br />
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)" /><font color="RED"> a </font>Réponse9a<br />
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)" /><font color="RED"> b </font>Réponse9b<br />
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)" /><font color="RED"> c </font>Réponse9c<br />
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)" /><font color="RED"> d </font>Réponse9d<br />
<br />
<font color="YELLOW">10 </font>Question10<br />
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)" /><font color="RED"> a </font>Réponse10a<br />
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)" /><font color="RED"> b </font>Réponse10b<br />
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)" /><font color="RED"> c </font>Réponse10c<br />
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)" /><font color="RED"> d </font>Réponse10d<br />
<br />
<p> <input type="button" name="Resultats" value="Résultats" onclick="NextLevel()" /></p>
</form>
j'essaye tout ,en vain
j'ai remis tout sa dans ma page
<h1>QUIZZ</h1>
<h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br />
Bonne chance !</h4>
<p><noscript>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</noscript> </p>
<form name="quest">
<font color="YELLOW">1 </font>Question1<br />
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)" /><font color="RED"> a </font>Réponse1a<br />
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)" /><font color="RED"> b </font>Réponse1b<br />
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)" /><font color="RED"> c </font>Réponse1c<br />
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)" /><font color="RED"> d </font>Réponse1d<br />
<br />
<font color="YELLOW">2 </font>Question2<br />
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)" /><font color="RED"> a </font>Réponse2a<br />
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)" /><font color="RED"> b </font>Réponse2b<br />
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)" /><font color="RED"> c </font>Réponse2c<br />
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)" /><font color="RED"> d </font>Réponse2d<br />
<br />
<font color="YELLOW">3 </font>Question3<br />
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)" /><font color="RED"> a </font>Réponse3a<br />
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)" /><font color="RED"> b </font>Réponse3b<br />
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)" /><font color="RED"> c </font>Réponse3c<br />
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)" /><font color="RED"> d </font>Réponse3d<br />
<br />
<font color="YELLOW">4 </font>Question4<br />
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)" /><font color="RED"> a </font>Réponse4a<br />
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)" /><font color="RED"> b </font>Réponse4b<br />
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)" /><font color="RED"> c </font>Réponse4c<br />
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)" /><font color="RED"> d </font>Réponse4d<br />
<br />
<font color="YELLOW">5 </font>Question5<br />
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)" /><font color="RED"> a </font>Réponse5a<br />
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)" /><font color="RED"> b </font>Réponse5b<br />
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)" /><font color="RED"> c </font>Réponse5c<br />
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)" /><font color="RED"> d </font>Réponse5d<br />
<br />
<font color="YELLOW">6 </font>Question6<br />
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)" /><font color="RED"> a </font>Réponse6a<br />
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)" /><font color="RED"> b </font>Réponse6b<br />
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)" /><font color="RED"> c </font>Réponse6c<br />
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)" /><font color="RED"> d </font>Réponse6d<br />
<br />
<font color="YELLOW">7 </font>Question7<br />
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)" /><font color="RED"> a </font>Réponse7a<br />
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)" /><font color="RED"> b </font>Réponse7b<br />
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)" /><font color="RED"> c </font>Réponse7c<br />
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)" /><font color="RED"> d </font>Réponse7d<br />
<br />
<font color="YELLOW">8 </font>Question8<br />
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)" /><font color="RED"> a </font>Réponse8a<br />
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)" /><font color="RED"> b </font>Réponse8b<br />
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)" /><font color="RED"> c </font>Réponse8c<br />
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)" /><font color="RED"> d </font>Réponse8d<br />
<br />
<font color="YELLOW">9 </font>Question9<br />
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)" /><font color="RED"> a </font>Réponse9a<br />
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)" /><font color="RED"> b </font>Réponse9b<br />
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)" /><font color="RED"> c </font>Réponse9c<br />
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)" /><font color="RED"> d </font>Réponse9d<br />
<br />
<font color="YELLOW">10 </font>Question10<br />
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)" /><font color="RED"> a </font>Réponse10a<br />
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)" /><font color="RED"> b </font>Réponse10b<br />
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)" /><font color="RED"> c </font>Réponse10c<br />
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)" /><font color="RED"> d </font>Réponse10d<br />
<br />
<p> <input type="button" name="Resultats" value="Résultats" onclick="NextLevel()" /></p>
</form>
tkt on debute tous un jour ;)
et bien regere ton formulaire et copie tout le code qui te donne ;)
Adns
et bien regere ton formulaire et copie tout le code qui te donne ;)
Adns
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>TITRE_SUJET_QCM</TITLE>
<script language="JavaScript"><!--// hide
// hide
/* GameQuiz v1.0 by Wizzz.
Copyright (c) of Wizzz, 1997.
Permission to use, edit, etc. granted as long as the head section is intact!
Modifications et ajouts par Eric Dromer... à suivre...
*/
var rep = new Array;
var faite = new Array;
var score = 0;
// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
// valeurs à modifier (a b c ou d) :
rep[1] = "a";
rep[2] = "a";
rep[3] = "a";
rep[4] = "a";
rep[5] = "a";
rep[6] = "a";
rep[7] = "a";
rep[8] = "a";
rep[9] = "a";
rep[10] = "a";
// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
function Engine(question, reponse) {
if (reponse != rep[question]) {
if (!faite[question]) {
faite[question] = -1;
alert("Faux! Ton score est de : " + score + " La bonne réponse était en -" + rep[question] + "-");
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
else {
if (!faite[question]) {
faite[question] = -1;
score++;
alert("Bien! Ton score est de : " + score);
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
}
function NextLevel () {
if (score >= 11) {
alert("Tricheur !");
}
if (score > 9 && score < 11) {
alert(score + "/10 " + "Un coup de chance !... peut-être.");
}
if (score > 8 && score <= 9) {
alert(score + "/10 " + "Bien, mais... pas parfait.");
}
if (score >= 5 && score <= 8) {
alert(score + "/10 " + "Pas mal, on a vu mieux que cela cependant...");
}
if (score >= 1 && score < 5) {
alert(score + "/10 " + "Pas terrible... un autre essai ?");
}
if (score < 1) {
alert(score + "/10 " + "Un autre essai ?");
}
// ======================================================
// ligne qui suit à modifier pour envoyer le formulaire
// (mais indiquez la méthode dans la balise du formulaire) :
// document.quest.submit()
// ligne qui suit pour vider le formulaire :
faite = new Array;
score = 0;
//ligne suivante à désactiver si IE3 ou -
document.quest.reset();
}
// --></script>
</HEAD>
<BODY bgcolor="BLACK" text="WHITE">
<h1>QUIZZ</h1><h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br>
Bonne chance !</h4>
<p><NOSCRIPT>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</NOSCRIPT> </p>
<form name="quest">
<font color="YELLOW">1 </font>Question1<BR>
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)"><font color="RED"> a </font>Réponse1a<BR>
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)"><font color="RED"> b </font>Réponse1b<BR>
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)"><font color="RED"> c </font>Réponse1c<BR>
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)"><font color="RED"> d </font>Réponse1d<BR><BR>
<font color="YELLOW">2 </font>Question2<BR>
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)"><font color="RED"> a </font>Réponse2a<BR>
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)"><font color="RED"> b </font>Réponse2b<BR>
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)"><font color="RED"> c </font>Réponse2c<BR>
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)"><font color="RED"> d </font>Réponse2d<BR><BR>
<font color="YELLOW">3 </font>Question3<BR>
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)"><font color="RED"> a </font>Réponse3a<BR>
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)"><font color="RED"> b </font>Réponse3b<BR>
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)"><font color="RED"> c </font>Réponse3c<BR>
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)"><font color="RED"> d </font>Réponse3d<BR><BR>
<font color="YELLOW">4 </font>Question4<BR>
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)"><font color="RED"> a </font>Réponse4a<BR>
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)"><font color="RED"> b </font>Réponse4b<BR>
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)"><font color="RED"> c </font>Réponse4c<BR>
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)"><font color="RED"> d </font>Réponse4d<BR><BR>
<font color="YELLOW">5 </font>Question5<BR>
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)"><font color="RED"> a </font>Réponse5a<BR>
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)"><font color="RED"> b </font>Réponse5b<BR>
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)"><font color="RED"> c </font>Réponse5c<BR>
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)"><font color="RED"> d </font>Réponse5d<BR><BR>
<font color="YELLOW">6 </font>Question6<BR>
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)"><font color="RED"> a </font>Réponse6a<BR>
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)"><font color="RED"> b </font>Réponse6b<BR>
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)"><font color="RED"> c </font>Réponse6c<BR>
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)"><font color="RED"> d </font>Réponse6d<BR><BR>
<font color="YELLOW">7 </font>Question7<BR>
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)"><font color="RED"> a </font>Réponse7a<BR>
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)"><font color="RED"> b </font>Réponse7b<BR>
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)"><font color="RED"> c </font>Réponse7c<BR>
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)"><font color="RED"> d </font>Réponse7d<BR><BR>
<font color="YELLOW">8 </font>Question8<BR>
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)"><font color="RED"> a </font>Réponse8a<BR>
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)"><font color="RED"> b </font>Réponse8b<BR>
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)"><font color="RED"> c </font>Réponse8c<BR>
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)"><font color="RED"> d </font>Réponse8d<BR><BR>
<font color="YELLOW">9 </font>Question9<BR>
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)"><font color="RED"> a </font>Réponse9a<BR>
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)"><font color="RED"> b </font>Réponse9b<BR>
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)"><font color="RED"> c </font>Réponse9c<BR>
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)"><font color="RED"> d </font>Réponse9d<BR><BR>
<font color="YELLOW">10 </font>Question10<BR>
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)"><font color="RED"> a </font>Réponse10a<BR>
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)"><font color="RED"> b </font>Réponse10b<BR>
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)"><font color="RED"> c </font>Réponse10c<BR>
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)"><font color="RED"> d </font>Réponse10d<BR><BR>
<p> <input type="button" name="Resultats" value="Résultats"
onclick ="NextLevel()"></p></form>
</BODY>
</HTML>
http://usinaquiz.free.fr/autre/frqcm1.htm
ben voila quoi =) c'est bizarre non
même en suivant les conseille de ce site > http://i.gautier.free.fr/jsprof/scripts/qcm.htm
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>TITRE_SUJET_QCM</TITLE>
<script language="JavaScript"><!--// hide
// hide
/* GameQuiz v1.0 by Wizzz.
Copyright (c) of Wizzz, 1997.
Permission to use, edit, etc. granted as long as the head section is intact!
Modifications et ajouts par Eric Dromer... à suivre...
*/
var rep = new Array;
var faite = new Array;
var score = 0;
// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
// valeurs à modifier (a b c ou d) :
rep[1] = "a";
rep[2] = "a";
rep[3] = "a";
rep[4] = "a";
rep[5] = "a";
rep[6] = "a";
rep[7] = "a";
rep[8] = "a";
rep[9] = "a";
rep[10] = "a";
// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
function Engine(question, reponse) {
if (reponse != rep[question]) {
if (!faite[question]) {
faite[question] = -1;
alert("Faux! Ton score est de : " + score + " La bonne réponse était en -" + rep[question] + "-");
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
else {
if (!faite[question]) {
faite[question] = -1;
score++;
alert("Bien! Ton score est de : " + score);
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
}
function NextLevel () {
if (score >= 11) {
alert("Tricheur !");
}
if (score > 9 && score < 11) {
alert(score + "/10 " + "Un coup de chance !... peut-être.");
}
if (score > 8 && score <= 9) {
alert(score + "/10 " + "Bien, mais... pas parfait.");
}
if (score >= 5 && score <= 8) {
alert(score + "/10 " + "Pas mal, on a vu mieux que cela cependant...");
}
if (score >= 1 && score < 5) {
alert(score + "/10 " + "Pas terrible... un autre essai ?");
}
if (score < 1) {
alert(score + "/10 " + "Un autre essai ?");
}
// ======================================================
// ligne qui suit à modifier pour envoyer le formulaire
// (mais indiquez la méthode dans la balise du formulaire) :
// document.quest.submit()
// ligne qui suit pour vider le formulaire :
faite = new Array;
score = 0;
//ligne suivante à désactiver si IE3 ou -
document.quest.reset();
}
// --></script>
</HEAD>
<BODY bgcolor="BLACK" text="WHITE">
<h1>QUIZZ</h1><h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br>
Bonne chance !</h4>
<p><NOSCRIPT>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</NOSCRIPT> </p>
<form name="quest">
<font color="YELLOW">1 </font>Question1<BR>
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)"><font color="RED"> a </font>Réponse1a<BR>
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)"><font color="RED"> b </font>Réponse1b<BR>
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)"><font color="RED"> c </font>Réponse1c<BR>
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)"><font color="RED"> d </font>Réponse1d<BR><BR>
<font color="YELLOW">2 </font>Question2<BR>
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)"><font color="RED"> a </font>Réponse2a<BR>
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)"><font color="RED"> b </font>Réponse2b<BR>
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)"><font color="RED"> c </font>Réponse2c<BR>
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)"><font color="RED"> d </font>Réponse2d<BR><BR>
<font color="YELLOW">3 </font>Question3<BR>
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)"><font color="RED"> a </font>Réponse3a<BR>
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)"><font color="RED"> b </font>Réponse3b<BR>
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)"><font color="RED"> c </font>Réponse3c<BR>
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)"><font color="RED"> d </font>Réponse3d<BR><BR>
<font color="YELLOW">4 </font>Question4<BR>
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)"><font color="RED"> a </font>Réponse4a<BR>
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)"><font color="RED"> b </font>Réponse4b<BR>
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)"><font color="RED"> c </font>Réponse4c<BR>
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)"><font color="RED"> d </font>Réponse4d<BR><BR>
<font color="YELLOW">5 </font>Question5<BR>
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)"><font color="RED"> a </font>Réponse5a<BR>
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)"><font color="RED"> b </font>Réponse5b<BR>
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)"><font color="RED"> c </font>Réponse5c<BR>
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)"><font color="RED"> d </font>Réponse5d<BR><BR>
<font color="YELLOW">6 </font>Question6<BR>
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)"><font color="RED"> a </font>Réponse6a<BR>
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)"><font color="RED"> b </font>Réponse6b<BR>
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)"><font color="RED"> c </font>Réponse6c<BR>
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)"><font color="RED"> d </font>Réponse6d<BR><BR>
<font color="YELLOW">7 </font>Question7<BR>
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)"><font color="RED"> a </font>Réponse7a<BR>
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)"><font color="RED"> b </font>Réponse7b<BR>
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)"><font color="RED"> c </font>Réponse7c<BR>
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)"><font color="RED"> d </font>Réponse7d<BR><BR>
<font color="YELLOW">8 </font>Question8<BR>
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)"><font color="RED"> a </font>Réponse8a<BR>
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)"><font color="RED"> b </font>Réponse8b<BR>
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)"><font color="RED"> c </font>Réponse8c<BR>
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)"><font color="RED"> d </font>Réponse8d<BR><BR>
<font color="YELLOW">9 </font>Question9<BR>
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)"><font color="RED"> a </font>Réponse9a<BR>
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)"><font color="RED"> b </font>Réponse9b<BR>
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)"><font color="RED"> c </font>Réponse9c<BR>
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)"><font color="RED"> d </font>Réponse9d<BR><BR>
<font color="YELLOW">10 </font>Question10<BR>
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)"><font color="RED"> a </font>Réponse10a<BR>
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)"><font color="RED"> b </font>Réponse10b<BR>
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)"><font color="RED"> c </font>Réponse10c<BR>
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)"><font color="RED"> d </font>Réponse10d<BR><BR>
<p> <input type="button" name="Resultats" value="Résultats"
onclick ="NextLevel()"></p></form>
</BODY>
</HTML>
http://usinaquiz.free.fr/autre/frqcm1.htm
ben voila quoi =) c'est bizarre non
même en suivant les conseille de ce site > http://i.gautier.free.fr/jsprof/scripts/qcm.htm
le code javascript est le suivant
colle le entre les balise <head></head> de ta page
Adns
<script language="JavaScript"><!--// hide // hide /* GameQuiz v1.0 by Wizzz. Copyright (c) of Wizzz, 1997. Permission to use, edit, etc. granted as long as the head section is intact! Modifications et ajouts par Eric Dromer... à suivre... */ var rep = new Array; var faite = new Array; var score = 0; // rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr // valeurs à modifier (a b c ou d) : rep[1] = "a"; rep[2] = "a"; rep[3] = "a"; rep[4] = "a"; rep[5] = "a"; rep[6] = "a"; rep[7] = "a"; rep[8] = "a"; rep[9] = "a"; rep[10] = "a"; // rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr function Engine(question, reponse) { if (reponse != rep[question]) { if (!faite[question]) { faite[question] = -1; alert("Faux! Ton score est de : " + score + " La bonne réponse était en -" + rep[question] + "-"); } else { alert("Tu as déjà répondu à cette question !"); } } else { if (!faite[question]) { faite[question] = -1; score++; alert("Bien! Ton score est de : " + score); } else { alert("Tu as déjà répondu à cette question !"); } } } function NextLevel () { if (score >= 11) { alert("Tricheur !"); } if (score > 9 && score < 11) { alert(score + "/10 " + "Un coup de chance !... peut-être."); } if (score > 8 && score <= 9) { alert(score + "/10 " + "Bien, mais... pas parfait."); } if (score >= 5 && score <= 8) { alert(score + "/10 " + "Pas mal, on a vu mieux que cela cependant..."); } if (score >= 1 && score < 5) { alert(score + "/10 " + "Pas terrible... un autre essai ?"); } if (score < 1) { alert(score + "/10 " + "Un autre essai ?"); } // ====================================================== // ligne qui suit à modifier pour envoyer le formulaire // (mais indiquez la méthode dans la balise du formulaire) : // document.quest.submit() // ligne qui suit pour vider le formulaire : faite = new Array; score = 0; //ligne suivante à désactiver si IE3 ou - document.quest.reset(); } // --></script>
colle le entre les balise <head></head> de ta page
Adns