Aide pour un code svp.
antechrist63
Messages postés
18
Statut
Membre
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonsoir à tous !
Je suis enseignant et je suis en train de créer un blog pour mes élèves. Je souhaite créer des exercices qui leur permettent de vérifier qu'ils ont bien compris le cours, mais je suis positivement incapable d'écrire le code. Est-ce que quelqu'un peut m'aider svp ?
Quel code ?
- Il me faudrait un code qui propose un champ texte dans lequel on écrit la réponse avec un bouton d'envoi.
- Si la réponse envoyée est juste, une boite de dialogue s'ouvre avec la mention "correct"
- Si la réponse envoyée est fausse, une boite de dialogue s'ouvre avec la mention "faux" et la réponse juste.
Merci d'avance de votre aide.
Je suis enseignant et je suis en train de créer un blog pour mes élèves. Je souhaite créer des exercices qui leur permettent de vérifier qu'ils ont bien compris le cours, mais je suis positivement incapable d'écrire le code. Est-ce que quelqu'un peut m'aider svp ?
Quel code ?
- Il me faudrait un code qui propose un champ texte dans lequel on écrit la réponse avec un bouton d'envoi.
- Si la réponse envoyée est juste, une boite de dialogue s'ouvre avec la mention "correct"
- Si la réponse envoyée est fausse, une boite de dialogue s'ouvre avec la mention "faux" et la réponse juste.
Merci d'avance de votre aide.
A voir également:
- Aide pour un code svp.
- Code ascii - Guide
- Comment déverrouiller un téléphone quand on a oublié le code - Guide
- Code puk bloqué - Guide
- Code activation windows 10 - Guide
- Code blocks - Télécharger - Langages
4 réponses
slt! je peux te proposer ça:
dans le HTML :
<input type="text" id="reponse"/>
<input type="button" onclick="justOuPas()"/>
puis la fonction justeOuPas (javascript) que tu peux mettre dans ta page HTML aussi avec les balises <script></script> :
function justeOuPas(){
var reponsetudiant=document.getElementById("reponse").value;
var reponsejuste="la réponse vraie";
if(reponsetudiant==reponse){alert("correct");}else{alert("faux");}
}
dans le HTML :
<input type="text" id="reponse"/>
<input type="button" onclick="justOuPas()"/>
puis la fonction justeOuPas (javascript) que tu peux mettre dans ta page HTML aussi avec les balises <script></script> :
function justeOuPas(){
var reponsetudiant=document.getElementById("reponse").value;
var reponsejuste="la réponse vraie";
if(reponsetudiant==reponse){alert("correct");}else{alert("faux");}
}
salut
Voici un exemple pour un petit Examen en Chimie :
Code ( Copiez le code ci-après sur un fichier Texte puis l'enregistrez avec l'extension htm ):
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
var total = 20;
var score = 0;
function verif(form) {
score = 0
if ((form.c1.value=="") || (form.c2.value=="") || (form.c3.value=="") || (form.c4.value=="") || (form.c5.value=="") || (form.c6.value=="") || (form.c7.value=="") || (form.c8.value=="") || (form.c9.value=="") || (form.c10.value=="") || (form.c11.value=="") || (form.c12.value=="") || (form.c13.value=="") || (form.c14.value=="") || (form.c15.value=="")||
(form.c16.value=="") || (form.c17.value=="") || (form.c18.value=="") || (form.c19.value=="") || (form.c20.value=="") || (form.c21.value=="") || (form.c22.value=="") || (form.c23.value=="") || (form.c24.value=="") || (form.c25.value=="") || (form.c26.value=="") || (form.c27.value=="") || (form.c28.value=="") || (form.c29.value=="") || (form.c30.value=="")||
(form.c31.value=="") || (form.c32.value=="") || (form.c33.value=="") || (form.c34.value=="") || (form.c35.value=="") || (form.c36.value=="") || (form.c37.value=="") || (form.c38.value=="") || (form.c39.value=="") || (form.c40.value=="") || (form.c41.value=="") || (form.c42.value=="") || (form.c43.value=="") || (form.c44.value=="") || (form.c45.value=="")||
(form.c46.value=="") || (form.c47.value=="") || (form.c48.value=="") || (form.c49.value=="") || (form.c50.value=="") || (form.c51.value=="") || (form.c52.value=="") || (form.c53.value=="") || (form.c54.value=="") || (form.c55.value=="") || (form.c56.value=="") || (form.c57.value=="") || (form.c58.value=="") || (form.c59.value=="") || (form.c60.value=="") ||
(form.c61.value=="") || (form.c62.value=="") || (form.c63.value=="") || (form.c64.value=="") || (form.c65.value=="") || (form.c66.value=="") || (form.c67.value=="")){
alert ("Il faut completer les champs");}
else {
if ((form.c1.value==2)&&(form.c2.value==1)&&(form.c3.value==2)){
score = score + 1;
}
if ((form.c4.value==1)&&(form.c5.value==1)&&(form.c6.value==1)){
score = score + 1;
}
if ((form.c7.value==1)&&(form.c8.value==2)&&(form.c9.value==2)){
score = score + 1;
}
if ((form.c10.value==1)&&(form.c11.value==3)&&(form.c12.value==2)){
score = score + 1;
}
if ((form.c13.value==1)&&(form.c14.value==1)&&(form.c15.value==2)){
score = score + 1;
}
if ((form.c16.value==1)&&(form.c17.value==1)&&(form.c18.value==1)){
score = score + 1;
}
if ((form.c19.value==2)&&(form.c20.value==3)&&(form.c21.value==2)){
score = score + 1;
}
if ((form.c22.value==2)&&(form.c23.value==1)&&(form.c24.value==2)){
score = score + 1;
}
if ((form.c25.value==2)&&(form.c26.value==3)&&(form.c27.value==2)){
score = score + 1;
}
if ((form.c28.value==1)&&(form.c29.value==1)&&(form.c30.value==1)&&(form.c31.value==1)){
score = score + 1;
}
if ((form.c32.value==2)&&(form.c33.value==1)&&(form.c34.value==2)&&(form.c35.value==2)){
score = score + 1;
}
if ((form.c36.value==2)&&(form.c37.value==1)&&(form.c38.value==2)&&(form.c39.value==1)){
score = score + 1;
}
if ((form.c40.value==1)&&(form.c41.value==2)&&(form.c42.value==2)&&(form.c43.value==1)){
score = score + 1;
}
if ((form.c44.value==2)&&(form.c45.value==3)&&(form.c46.value==1)&&(form.c47.value==3)){
score = score + 1;
}
if ((form.c48.value==1)&&(form.c49.value==2)&&(form.c50.value==1)&&(form.c51.value==2)){
score = score + 1;
}
if ((form.c52.value==1)&&(form.c53.value==3)&&(form.c54.value==1)){
score = score + 1;
}
if ((form.c55.value==2)&&(form.c56.value==1)&&(form.c57.value==2)){
score = score + 1;
}
if ((form.c58.value==2)&&(form.c59.value==1)&&(form.c60.value==2)){
score = score + 1;
}
if ((form.c61.value==2)&&(form.c62.value==1)&&(form.c63.value==2)){
score = score + 1;
}
if ((form.c64.value==1)&&(form.c65.value==2)&&(form.c66.value==1)&&(form.c67.value==2)){
score = score + 1;
}
if (score != 0)
score = parseInt(score * 20/total);
if (score == 20)
alert(score + " sur 20\n Très Bien");
if ((score >= 10) && (score < 20))
alert(score + " sur 20\n Vous pouvez faire mieu que ça");
if ((score >= 5) && (score < 10))
alert(score + " sur 20\n Moyen");
if (score < 5)
alert(score + " sur 20\n Vous devez réviser la dernière lesson ?");
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
score = 0
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<p dir="rtl" align="center"><b>
<font face="Simplified Arabic" size="5">Après avoir completer les equations suivantes ?
Appuer sur le bouton "Réponse" . Il faut écrire les coéfficients même le coéfficient UN (1)</font></b></p>
<p dir="rtl" align="center"><b>
<font face="Simplified Arabic" size="5">Un Points pour chaque équation, Bonne Chance.</font></b></p>
<form name=form>
<p align="center"><b> <input type="text" name="c1" maxlength="3" size="3">
C +
<input type="text" name="c2" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c3" maxlength="3" size="3">
CO <span lang="fr">
</span>/1 </b></p>
<p align="center"><b> <input type="text" name="c4" maxlength="3" size="3">
Fe +
<input type="text" name="c5" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c6" maxlength="3" size="3">
FeCl<sub>2<span lang="fr">
</span></sub> /2</b></p>
<p align="center"><b> <input type="text" name="c7" maxlength="3" size="3">
N<sub>2</sub> +
<input type="text" name="c8" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c9" maxlength="3" size="3">
NO<sub>2</sub> <span lang="fr">
</span>/3</b></p>
<p align="center"><b> <input type="text" name="c10" maxlength="3" size="3">
N<sub>2</sub> +
<input type="text" name="c11" maxlength="3" size="3">
H2 ----->
<input type="text" name="c12" maxlength="3" size="3">
NH<sub>3<span lang="fr">
</span></sub>/4</b></p>
<p align="center"><b>
<input type="text" name="c13" maxlength="3" size="3">
H<sub>2</sub> +
<input type="text" name="c14" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c15" maxlength="3" size="3">
HCl <span lang="fr">
</span>/5</b></p>
<p align="center"><b> <input type="text" name="c16" maxlength="3" size="3">
Cu +
<input type="text" name="c17" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c18" maxlength="3" size="3">
CuO<sub>2</sub> <span lang="fr">
</span>/6</b></p>
<p align="center"><b> <input type="text" name="c19" maxlength="3" size="3">
Fe +
<input type="text" name="c20" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c21" maxlength="3" size="3">
FeCl<sub>3</sub> <span lang="fr">
</span>/7</b></p>
<p align="center"><b> <input type="text" name="c22" maxlength="3" size="3">
SnO +
<input type="text" name="c23" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c24" maxlength="3" size="3">
SnO<sub>2</sub> <span lang="fr">
</span>/8</b></p>
<p align="center"><b>
<input type="text" name="c25" maxlength="3" size="3">
Al +
<input type="text" name="c26" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c27" maxlength="3" size="3">
AlCl<sub>3</sub> <span lang="fr">
</span>/9 </b></p>
<p align="center"><b> <input type="text" name="c28" maxlength="3" size="3">
Mg +
<input type="text" name="c29" maxlength="3" size="3">
CO<sub>2</sub> ----->
<input type="text" name="c30" maxlength="3" size="3">
CO +
<input type="text" name="c31" maxlength="3" size="3">
MgO <span lang="fr"> </span>/10</b></p>
<p align="center"><b> <input type="text" name="c32" maxlength="3" size="3">
H<sub>2</sub>S +
<input type="text" name="c33" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c34" maxlength="3" size="3">
H<sub>2</sub>O +
<input type="text" name="c35" maxlength="3" size="3">
S <span lang="fr">
</span>/11</b></p>
<p align="center"><b>
<input type="text" name="c36" maxlength="3" size="3">
CuO +
<input type="text" name="c37" maxlength="3" size="3">
C ----->
<input type="text" name="c38" maxlength="3" size="3">
Cu +
<input type="text" name="c39" maxlength="3" size="3">
CO<sub>2</sub> <span lang="fr">
</span>/12</b></p>
<p align="center"><b> <input type="text" name="c40" maxlength="3" size="3">
Cr<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c41" maxlength="3" size="3">
Al ----->
<input type="text" name="c42" maxlength="3" size="3">
Cr +
<input type="text" name="c43" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> <span lang="fr">
</span>/13</b></p>
<p align="center"><b> <input type="text" name="c44" maxlength="3" size="3">
Al +
<input type="text" name="c45" maxlength="3" size="3">
H<sub>2</sub>O ----->
<input type="text" name="c46" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c47" maxlength="3" size="3">
H2 <span lang="fr">
</span>/14</b></p>
<p align="center"><b> <input type="text" name="c48" maxlength="3" size="3">
Fe<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c49" maxlength="3" size="3">
Al ----->
<input type="text" name="c50" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c51" maxlength="3" size="3">
Fe<span lang="fr"> </span> /15</b></p>
<p align="center"><b> <input type="text" name="c52" maxlength="3" size="3">
C<sub>6</sub>H<sub>6</sub> +
<input type="text" name="c53" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c54" maxlength="3" size="3">
C<sub>6</sub>H<sub>6</sub>Cl<sub>6</sub> <span lang="fr">
</span>/16</b></p>
<p align="center"><b> <input type="text" name="c55" maxlength="3" size="3">
NO +
<input type="text" name="c56" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c57" maxlength="3" size="3">
NO<sub>2</sub> <span lang="fr">
</span>/17</b></p>
<p align="center"><b> <input type="text" name="c58" maxlength="3" size="3">
SO<sub>2</sub> +
<input type="text" name="c59" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c60" maxlength="3" size="3">
SO<sub>3<span lang="fr">
</span></sub> /18</b></p>
<p align="center"><b> <input type="text" name="c61" maxlength="3" size="3">
CO +
<input type="text" name="c62" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c63" maxlength="3" size="3">
CO<sub>2</sub> <span lang="fr">
</span>/19</b></p>
<p align="center"><b> <input type="text" name="c64" maxlength="3" size="3">
CH<sub>4</sub> +
<input type="text" name="c65" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c66" maxlength="3" size="3">
CO<sub>2</sub> +
<input type="text" name="c67" maxlength="3" size="3">
H<sub>2</sub>O <span lang="fr">
</span>/20</b></p>
<p align="center">
<input type="button" value="Réponse" onClick="verif(form);" name="button1">
</p>
</form>
<p> </p>
</body>
</html>
Voici un exemple pour un petit Examen en Chimie :
Code ( Copiez le code ci-après sur un fichier Texte puis l'enregistrez avec l'extension htm ):
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
var total = 20;
var score = 0;
function verif(form) {
score = 0
if ((form.c1.value=="") || (form.c2.value=="") || (form.c3.value=="") || (form.c4.value=="") || (form.c5.value=="") || (form.c6.value=="") || (form.c7.value=="") || (form.c8.value=="") || (form.c9.value=="") || (form.c10.value=="") || (form.c11.value=="") || (form.c12.value=="") || (form.c13.value=="") || (form.c14.value=="") || (form.c15.value=="")||
(form.c16.value=="") || (form.c17.value=="") || (form.c18.value=="") || (form.c19.value=="") || (form.c20.value=="") || (form.c21.value=="") || (form.c22.value=="") || (form.c23.value=="") || (form.c24.value=="") || (form.c25.value=="") || (form.c26.value=="") || (form.c27.value=="") || (form.c28.value=="") || (form.c29.value=="") || (form.c30.value=="")||
(form.c31.value=="") || (form.c32.value=="") || (form.c33.value=="") || (form.c34.value=="") || (form.c35.value=="") || (form.c36.value=="") || (form.c37.value=="") || (form.c38.value=="") || (form.c39.value=="") || (form.c40.value=="") || (form.c41.value=="") || (form.c42.value=="") || (form.c43.value=="") || (form.c44.value=="") || (form.c45.value=="")||
(form.c46.value=="") || (form.c47.value=="") || (form.c48.value=="") || (form.c49.value=="") || (form.c50.value=="") || (form.c51.value=="") || (form.c52.value=="") || (form.c53.value=="") || (form.c54.value=="") || (form.c55.value=="") || (form.c56.value=="") || (form.c57.value=="") || (form.c58.value=="") || (form.c59.value=="") || (form.c60.value=="") ||
(form.c61.value=="") || (form.c62.value=="") || (form.c63.value=="") || (form.c64.value=="") || (form.c65.value=="") || (form.c66.value=="") || (form.c67.value=="")){
alert ("Il faut completer les champs");}
else {
if ((form.c1.value==2)&&(form.c2.value==1)&&(form.c3.value==2)){
score = score + 1;
}
if ((form.c4.value==1)&&(form.c5.value==1)&&(form.c6.value==1)){
score = score + 1;
}
if ((form.c7.value==1)&&(form.c8.value==2)&&(form.c9.value==2)){
score = score + 1;
}
if ((form.c10.value==1)&&(form.c11.value==3)&&(form.c12.value==2)){
score = score + 1;
}
if ((form.c13.value==1)&&(form.c14.value==1)&&(form.c15.value==2)){
score = score + 1;
}
if ((form.c16.value==1)&&(form.c17.value==1)&&(form.c18.value==1)){
score = score + 1;
}
if ((form.c19.value==2)&&(form.c20.value==3)&&(form.c21.value==2)){
score = score + 1;
}
if ((form.c22.value==2)&&(form.c23.value==1)&&(form.c24.value==2)){
score = score + 1;
}
if ((form.c25.value==2)&&(form.c26.value==3)&&(form.c27.value==2)){
score = score + 1;
}
if ((form.c28.value==1)&&(form.c29.value==1)&&(form.c30.value==1)&&(form.c31.value==1)){
score = score + 1;
}
if ((form.c32.value==2)&&(form.c33.value==1)&&(form.c34.value==2)&&(form.c35.value==2)){
score = score + 1;
}
if ((form.c36.value==2)&&(form.c37.value==1)&&(form.c38.value==2)&&(form.c39.value==1)){
score = score + 1;
}
if ((form.c40.value==1)&&(form.c41.value==2)&&(form.c42.value==2)&&(form.c43.value==1)){
score = score + 1;
}
if ((form.c44.value==2)&&(form.c45.value==3)&&(form.c46.value==1)&&(form.c47.value==3)){
score = score + 1;
}
if ((form.c48.value==1)&&(form.c49.value==2)&&(form.c50.value==1)&&(form.c51.value==2)){
score = score + 1;
}
if ((form.c52.value==1)&&(form.c53.value==3)&&(form.c54.value==1)){
score = score + 1;
}
if ((form.c55.value==2)&&(form.c56.value==1)&&(form.c57.value==2)){
score = score + 1;
}
if ((form.c58.value==2)&&(form.c59.value==1)&&(form.c60.value==2)){
score = score + 1;
}
if ((form.c61.value==2)&&(form.c62.value==1)&&(form.c63.value==2)){
score = score + 1;
}
if ((form.c64.value==1)&&(form.c65.value==2)&&(form.c66.value==1)&&(form.c67.value==2)){
score = score + 1;
}
if (score != 0)
score = parseInt(score * 20/total);
if (score == 20)
alert(score + " sur 20\n Très Bien");
if ((score >= 10) && (score < 20))
alert(score + " sur 20\n Vous pouvez faire mieu que ça");
if ((score >= 5) && (score < 10))
alert(score + " sur 20\n Moyen");
if (score < 5)
alert(score + " sur 20\n Vous devez réviser la dernière lesson ?");
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
score = 0
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<p dir="rtl" align="center"><b>
<font face="Simplified Arabic" size="5">Après avoir completer les equations suivantes ?
Appuer sur le bouton "Réponse" . Il faut écrire les coéfficients même le coéfficient UN (1)</font></b></p>
<p dir="rtl" align="center"><b>
<font face="Simplified Arabic" size="5">Un Points pour chaque équation, Bonne Chance.</font></b></p>
<form name=form>
<p align="center"><b> <input type="text" name="c1" maxlength="3" size="3">
C +
<input type="text" name="c2" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c3" maxlength="3" size="3">
CO <span lang="fr">
</span>/1 </b></p>
<p align="center"><b> <input type="text" name="c4" maxlength="3" size="3">
Fe +
<input type="text" name="c5" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c6" maxlength="3" size="3">
FeCl<sub>2<span lang="fr">
</span></sub> /2</b></p>
<p align="center"><b> <input type="text" name="c7" maxlength="3" size="3">
N<sub>2</sub> +
<input type="text" name="c8" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c9" maxlength="3" size="3">
NO<sub>2</sub> <span lang="fr">
</span>/3</b></p>
<p align="center"><b> <input type="text" name="c10" maxlength="3" size="3">
N<sub>2</sub> +
<input type="text" name="c11" maxlength="3" size="3">
H2 ----->
<input type="text" name="c12" maxlength="3" size="3">
NH<sub>3<span lang="fr">
</span></sub>/4</b></p>
<p align="center"><b>
<input type="text" name="c13" maxlength="3" size="3">
H<sub>2</sub> +
<input type="text" name="c14" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c15" maxlength="3" size="3">
HCl <span lang="fr">
</span>/5</b></p>
<p align="center"><b> <input type="text" name="c16" maxlength="3" size="3">
Cu +
<input type="text" name="c17" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c18" maxlength="3" size="3">
CuO<sub>2</sub> <span lang="fr">
</span>/6</b></p>
<p align="center"><b> <input type="text" name="c19" maxlength="3" size="3">
Fe +
<input type="text" name="c20" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c21" maxlength="3" size="3">
FeCl<sub>3</sub> <span lang="fr">
</span>/7</b></p>
<p align="center"><b> <input type="text" name="c22" maxlength="3" size="3">
SnO +
<input type="text" name="c23" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c24" maxlength="3" size="3">
SnO<sub>2</sub> <span lang="fr">
</span>/8</b></p>
<p align="center"><b>
<input type="text" name="c25" maxlength="3" size="3">
Al +
<input type="text" name="c26" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c27" maxlength="3" size="3">
AlCl<sub>3</sub> <span lang="fr">
</span>/9 </b></p>
<p align="center"><b> <input type="text" name="c28" maxlength="3" size="3">
Mg +
<input type="text" name="c29" maxlength="3" size="3">
CO<sub>2</sub> ----->
<input type="text" name="c30" maxlength="3" size="3">
CO +
<input type="text" name="c31" maxlength="3" size="3">
MgO <span lang="fr"> </span>/10</b></p>
<p align="center"><b> <input type="text" name="c32" maxlength="3" size="3">
H<sub>2</sub>S +
<input type="text" name="c33" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c34" maxlength="3" size="3">
H<sub>2</sub>O +
<input type="text" name="c35" maxlength="3" size="3">
S <span lang="fr">
</span>/11</b></p>
<p align="center"><b>
<input type="text" name="c36" maxlength="3" size="3">
CuO +
<input type="text" name="c37" maxlength="3" size="3">
C ----->
<input type="text" name="c38" maxlength="3" size="3">
Cu +
<input type="text" name="c39" maxlength="3" size="3">
CO<sub>2</sub> <span lang="fr">
</span>/12</b></p>
<p align="center"><b> <input type="text" name="c40" maxlength="3" size="3">
Cr<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c41" maxlength="3" size="3">
Al ----->
<input type="text" name="c42" maxlength="3" size="3">
Cr +
<input type="text" name="c43" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> <span lang="fr">
</span>/13</b></p>
<p align="center"><b> <input type="text" name="c44" maxlength="3" size="3">
Al +
<input type="text" name="c45" maxlength="3" size="3">
H<sub>2</sub>O ----->
<input type="text" name="c46" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c47" maxlength="3" size="3">
H2 <span lang="fr">
</span>/14</b></p>
<p align="center"><b> <input type="text" name="c48" maxlength="3" size="3">
Fe<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c49" maxlength="3" size="3">
Al ----->
<input type="text" name="c50" maxlength="3" size="3">
Al<sub>2</sub>O<sub>3</sub> +
<input type="text" name="c51" maxlength="3" size="3">
Fe<span lang="fr"> </span> /15</b></p>
<p align="center"><b> <input type="text" name="c52" maxlength="3" size="3">
C<sub>6</sub>H<sub>6</sub> +
<input type="text" name="c53" maxlength="3" size="3">
Cl<sub>2</sub> ----->
<input type="text" name="c54" maxlength="3" size="3">
C<sub>6</sub>H<sub>6</sub>Cl<sub>6</sub> <span lang="fr">
</span>/16</b></p>
<p align="center"><b> <input type="text" name="c55" maxlength="3" size="3">
NO +
<input type="text" name="c56" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c57" maxlength="3" size="3">
NO<sub>2</sub> <span lang="fr">
</span>/17</b></p>
<p align="center"><b> <input type="text" name="c58" maxlength="3" size="3">
SO<sub>2</sub> +
<input type="text" name="c59" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c60" maxlength="3" size="3">
SO<sub>3<span lang="fr">
</span></sub> /18</b></p>
<p align="center"><b> <input type="text" name="c61" maxlength="3" size="3">
CO +
<input type="text" name="c62" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c63" maxlength="3" size="3">
CO<sub>2</sub> <span lang="fr">
</span>/19</b></p>
<p align="center"><b> <input type="text" name="c64" maxlength="3" size="3">
CH<sub>4</sub> +
<input type="text" name="c65" maxlength="3" size="3">
O<sub>2</sub> ----->
<input type="text" name="c66" maxlength="3" size="3">
CO<sub>2</sub> +
<input type="text" name="c67" maxlength="3" size="3">
H<sub>2</sub>O <span lang="fr">
</span>/20</b></p>
<p align="center">
<input type="button" value="Réponse" onClick="verif(form);" name="button1">
</p>
</form>
<p> </p>
</body>
</html>
Re:
Désolé pour le retard
Voici le même ( modifier rapidement )
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
function verif(form) {
if ((form.c1.value=="")){alert ("Il faut completer le champ");}
else {
if ((form.c1.value == "Oui") || (form.c1.value == "oui"))
alert("La réponse est " + form.c1.value + " C'est Vrai");
if ((form.c1.value == "Non") || (form.c1.value == "non"))
alert("La réponse N'est pas " + form.c1.value + " C'est Faux");
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<form name=form>
<p align="center"><b> <input type="text" name="c1" maxlength="3" size="3"></b></p>
<p align="center"><b> <input type="button" value="Réponse" onclick="verif(form);" name="button1"/></b></p>
</form>
</body>
</html>
Désolé pour le retard
Voici le même ( modifier rapidement )
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
function verif(form) {
if ((form.c1.value=="")){alert ("Il faut completer le champ");}
else {
if ((form.c1.value == "Oui") || (form.c1.value == "oui"))
alert("La réponse est " + form.c1.value + " C'est Vrai");
if ((form.c1.value == "Non") || (form.c1.value == "non"))
alert("La réponse N'est pas " + form.c1.value + " C'est Faux");
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<form name=form>
<p align="center"><b> <input type="text" name="c1" maxlength="3" size="3"></b></p>
<p align="center"><b> <input type="button" value="Réponse" onclick="verif(form);" name="button1"/></b></p>
</form>
</body>
</html>
Merci ! Ce code me parait plus lisible pour un profane. Bref, je l'ai testé et il marche à une exception près. Si j'inscris la réponse juste, ça marche, message "c'est juste". En revanche, si j'inscris quelque chose de faux, le message n'apparait pas et le champ se vide.
Admettons que la réponse juste soit "lapin"
que dois je inscrire entre guillemets pour que le code considère toute autre réponse que lapin comme fausse ? if ((form.c1.value == "Non") || (form.c1.value == "non"))
D'avance merci
Admettons que la réponse juste soit "lapin"
que dois je inscrire entre guillemets pour que le code considère toute autre réponse que lapin comme fausse ? if ((form.c1.value == "Non") || (form.c1.value == "non"))
D'avance merci
salut
Si j'ai bien compris, voici un code pour dix valeurs dans dix champs avec deux boutons, l'un pour la réponse et l'autre pour la solution.
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
function verif(form) {
if ((form.c1.value=="") || (form.c2.value=="") || (form.c3.value=="") || (form.c4.value=="") || (form.c5.value=="") || (form.c6.value=="") || (form.c7.value=="") || (form.c8.value=="") || (form.c9.value=="") || (form.c10.value=="")){
alert ("Il faut completer le champ");
}
else
{
if (form.c1.value=="lapin"){
document.write("<p align=" + "center" + "><b>Réponse N° 01 est " + form.c1.value + " C'est Vrai</b></p>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 01 n'est pas " + form.c1.value + " C'est Faux</b>");
}
if (form.c2.value=="lion"){
document.write("<p align=" + "center" + "><b>Réponse N° 02 est " + form.c2.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 02 n'est pas " + form.c2.value + " C'est Faux</b>");
}
if (form.c3.value=="tigre"){
document.write("<p align=" + "center" + "><b>Réponse N° 03 est " + form.c3.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 03 n'est pas " + form.c3.value + " C'est Faux</b>");
}
if (form.c4.value=="cheval"){
document.write("<p align=" + "center" + "><b>Réponse N° 04 est " + form.c4.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 04 n'est pas " + form.c4.value + " C'est Faux</b>");
}
if (form.c5.value=="chat"){
document.write("<p align=" + "center" + "><b>Réponse N° 05 est " + form.c5.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 05 n'est pas " + form.c5.value + " C'est Faux</b>");
}
if (form.c6.value=="chien"){
document.write("<p align=" + "center" + "><b>Réponse N° 06 est " + form.c6.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 06 n'est pas " + form.c6.value + " C'est Faux</b>");
}
if (form.c7.value=="oiseau"){
document.write("<p align=" + "center" + "><b>Réponse N° 07 est " + form.c7.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 07 n'est pas " + form.c7.value + " C'est Faux</b>");
}
if (form.c8.value=="éléphant"){
document.write("<p align=" + "center" + "><b>Réponse N° 08 est " + form.c8.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 08 n'est pas " + form.c8.value + " C'est Faux</b>");
}
if (form.c9.value=="papillon"){
document.write("<p align=" + "center" + "><b>Réponse N° 09 est " + form.c9.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 09 n'est pas " + form.c9.value + " C'est Faux</b>");
}
if (form.c10.value=="poulet"){
document.write("<p align=" + "center" + "><b>Réponse N° 10 est " + form.c10.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 10 n'est pas " + form.c10.value + " C'est Faux</b>");
}
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
function solution(form2) {
var a = "lapin"
var b = "lion"
var c = "tigre"
var d = "cheval"
var e = "chat"
var f = "chien"
var g = "oiseau"
var h = "éléphant"
var i = "papillon"
var j = "poulet"
document.write("<html>");
document.write("<head>");
document.write("<title>Solution d'Examen N°01</title>");
document.write("</head>");
document.write("<body bgcolor=" + "#00F7E2" + "text=" + "#000000" +">");
document.write("<p align=" + "center" + "dir=" + "rtl" + "><b>");
document.write("<font face=" + "Simplified Arabic" + "size=" + "6" + "color=" + "#FF0000" + ">");
document.write("<marquee direction=" + "right" + "scrolldelay=" + "80");
document.write(">Solution d'Examen N°01</marquee></font></b></p>");
document.write("<p align=" + "center" + "><b>Réponse N° 01 est " + a + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 02 est " + b + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 03 est " + c + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 04 est " + d + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 05 est " + e + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 06 est " + f + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 07 est " + g + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 08 est " + h + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 09 est " + i + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 10 est " + j + "</b>");
document.write("</body>");
document.write("</html>");
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<form name=form>
<p align="center"><b>Réponse N° 01 <input type="text" name="c1" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 02 <input type="text" name="c2" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 03 <input type="text" name="c3" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 04 <input type="text" name="c4" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 05 <input type="text" name="c5" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 06 <input type="text" name="c6" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 07 <input type="text" name="c7" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 08 <input type="text" name="c8" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 09 <input type="text" name="c9" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 10 <input type="text" name="c10" maxlength="8" size="8"></b></p>
<p align="center"><b><input type="button" value="Réponse" onclick="verif(form);" name="button1"/></b></p>
</form>
<form name=form2>
<p align="center"><b><input type="button" value="Solution" onclick="solution(form2);" name="button2"/></b></p>
</form>
</body>
</html>
karirovax :)
A+
Si j'ai bien compris, voici un code pour dix valeurs dans dix champs avec deux boutons, l'un pour la réponse et l'autre pour la solution.
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>?Examen N°01</title>
<script language="javascript">
function verif(form) {
if ((form.c1.value=="") || (form.c2.value=="") || (form.c3.value=="") || (form.c4.value=="") || (form.c5.value=="") || (form.c6.value=="") || (form.c7.value=="") || (form.c8.value=="") || (form.c9.value=="") || (form.c10.value=="")){
alert ("Il faut completer le champ");
}
else
{
if (form.c1.value=="lapin"){
document.write("<p align=" + "center" + "><b>Réponse N° 01 est " + form.c1.value + " C'est Vrai</b></p>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 01 n'est pas " + form.c1.value + " C'est Faux</b>");
}
if (form.c2.value=="lion"){
document.write("<p align=" + "center" + "><b>Réponse N° 02 est " + form.c2.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 02 n'est pas " + form.c2.value + " C'est Faux</b>");
}
if (form.c3.value=="tigre"){
document.write("<p align=" + "center" + "><b>Réponse N° 03 est " + form.c3.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 03 n'est pas " + form.c3.value + " C'est Faux</b>");
}
if (form.c4.value=="cheval"){
document.write("<p align=" + "center" + "><b>Réponse N° 04 est " + form.c4.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 04 n'est pas " + form.c4.value + " C'est Faux</b>");
}
if (form.c5.value=="chat"){
document.write("<p align=" + "center" + "><b>Réponse N° 05 est " + form.c5.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 05 n'est pas " + form.c5.value + " C'est Faux</b>");
}
if (form.c6.value=="chien"){
document.write("<p align=" + "center" + "><b>Réponse N° 06 est " + form.c6.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 06 n'est pas " + form.c6.value + " C'est Faux</b>");
}
if (form.c7.value=="oiseau"){
document.write("<p align=" + "center" + "><b>Réponse N° 07 est " + form.c7.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 07 n'est pas " + form.c7.value + " C'est Faux</b>");
}
if (form.c8.value=="éléphant"){
document.write("<p align=" + "center" + "><b>Réponse N° 08 est " + form.c8.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 08 n'est pas " + form.c8.value + " C'est Faux</b>");
}
if (form.c9.value=="papillon"){
document.write("<p align=" + "center" + "><b>Réponse N° 09 est " + form.c9.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 09 n'est pas " + form.c9.value + " C'est Faux</b>");
}
if (form.c10.value=="poulet"){
document.write("<p align=" + "center" + "><b>Réponse N° 10 est " + form.c10.value + " C'est Vrai</b>");
}
else
{
document.write("<p align=" + "center" + "><b>Réponse N° 10 n'est pas " + form.c10.value + " C'est Faux</b>");
}
var browser = navigator.appName;
var version = navigator.appVersion.charAt(0);
//===============================================
// pour IE4 ou Netscape 3 et +
if(browser == "Microsoft Internet Explorer" && version >= 4 || browser == "Netscape" && version >= 3) {
document.form.reset();
}
}
}
function solution(form2) {
var a = "lapin"
var b = "lion"
var c = "tigre"
var d = "cheval"
var e = "chat"
var f = "chien"
var g = "oiseau"
var h = "éléphant"
var i = "papillon"
var j = "poulet"
document.write("<html>");
document.write("<head>");
document.write("<title>Solution d'Examen N°01</title>");
document.write("</head>");
document.write("<body bgcolor=" + "#00F7E2" + "text=" + "#000000" +">");
document.write("<p align=" + "center" + "dir=" + "rtl" + "><b>");
document.write("<font face=" + "Simplified Arabic" + "size=" + "6" + "color=" + "#FF0000" + ">");
document.write("<marquee direction=" + "right" + "scrolldelay=" + "80");
document.write(">Solution d'Examen N°01</marquee></font></b></p>");
document.write("<p align=" + "center" + "><b>Réponse N° 01 est " + a + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 02 est " + b + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 03 est " + c + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 04 est " + d + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 05 est " + e + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 06 est " + f + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 07 est " + g + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 08 est " + h + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 09 est " + i + "</b>");
document.write("<p align=" + "center" + "><b>Réponse N° 10 est " + j + "</b>");
document.write("</body>");
document.write("</html>");
}
</script>
</head>
<body bgcolor="#B9F7E2" text="#000000">
<p align="center" dir="rtl"><b>
<font face="Simplified Arabic" size="6" color="#FF0000">
<marquee direction="right" scrolldelay="80">Examen N°01</marquee></font></b></p>
<form name=form>
<p align="center"><b>Réponse N° 01 <input type="text" name="c1" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 02 <input type="text" name="c2" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 03 <input type="text" name="c3" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 04 <input type="text" name="c4" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 05 <input type="text" name="c5" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 06 <input type="text" name="c6" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 07 <input type="text" name="c7" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 08 <input type="text" name="c8" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 09 <input type="text" name="c9" maxlength="8" size="8"></b></p>
<p align="center"><b>Réponse N° 10 <input type="text" name="c10" maxlength="8" size="8"></b></p>
<p align="center"><b><input type="button" value="Réponse" onclick="verif(form);" name="button1"/></b></p>
</form>
<form name=form2>
<p align="center"><b><input type="button" value="Solution" onclick="solution(form2);" name="button2"/></b></p>
</form>
</body>
</html>
karirovax :)
A+
Bonjour,
Hot Potatoes, logiciel gratuit et sans besoin de programmer si cela peux vous faire gagner du temps.
http://hotpot.uvic.ca/
Cdt ;-)
Hot Potatoes, logiciel gratuit et sans besoin de programmer si cela peux vous faire gagner du temps.
http://hotpot.uvic.ca/
Cdt ;-)
Pouvez vous me structurer la ligne de code entièrement de sorte que je n'ai qu'à entrer la réponse juste entre guillemets svp ? Merci
<script type="text/javascript">function justeOuPas(){
var reponsetudiant=document.getElementById("reponse").value;
var reponsejuste="la réponse vraie";
if(reponsetudiant==reponse){alert("correct");}else{alert("faux");}
}</script>
<form>
<p>Ma question ?</p>
<br/>
<input type="text" id="reponse" maxlength="nombre"/>
<input type="text" onclick="justeOuPas()"/>
</form>
voilà. tu remplaces la vraie réponse entre guillemets à la place de "la réponse vraie"
pour aider les élèves (car moi même je suis étudiant^^) tu peux limiter le nombre de caractères dans le champ où il faut inscrire la réponse. Pour cela tu ajoutes l'entier correspondant au nombre de caractères à la place de "nombre" entre guillemets dans l'attribut length. sinon tu effaces maxlength="nombre". après tout est possible aussi comme de rajouter dans input value="Ar". 'Ar' est alors déjà écrit dans le champ où il faut mettre la réponse, on sait donc que la réponse commence par Ar. Tu vois ce genre de choses.