1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0056)http://osu.orst.edu/admin/web-edit/overview/javaquiz.htm -->
<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40"><HEAD><TITLE>Javascript Quiz</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content=WebWorks name=Author>
<META content="OSU Central Web, Oregon State University" name=Copyright>
<META content=General name=Rating>
<META content=All name=Robots><LINK href="../modelesquiz/quizradiosol_fichiers/body.css"
rel=stylesheet type=text/css>
<SCRIPT language=JavaScript type=text/javascript><!--
//function to display the answers
function display_answers(){
if (document.quiz.answer1[0].checked == true) document.quiz.a1.value=" A";
if (document.quiz.answer1[1].checked == true) document.quiz.a1.value=" B";
if (document.quiz.answer1[2].checked == true) document.quiz.a1.value=" C";
if (document.quiz.answer1[3].checked == true) document.quiz.a1.value=" D";
if (document.quiz.answer2[0].checked == true) document.quiz.a2.value=" A";
if (document.quiz.answer2[1].checked == true) document.quiz.a2.value=" B";
if (document.quiz.answer2[2].checked == true) document.quiz.a2.value=" C";
if (document.quiz.answer2[3].checked == true) document.quiz.a2.value=" D";
if (document.quiz.answer3[0].checked == true) document.quiz.a3.value=" A";
if (document.quiz.answer3[1].checked == true) document.quiz.a3.value=" B";
if (document.quiz.answer3[2].checked == true) document.quiz.a3.value=" C";
if (document.quiz.answer3[3].checked == true) document.quiz.a3.value=" D";
if (document.quiz.answer4[0].checked == true) document.quiz.a4.value=" A";
if (document.quiz.answer4[1].checked == true) document.quiz.a4.value=" B";
if (document.quiz.answer4[2].checked == true) document.quiz.a4.value=" C";
if (document.quiz.answer4[3].checked == true) document.quiz.a4.value=" D";
if (document.quiz.answer5[0].checked == true) document.quiz.a5.value=" A";
if (document.quiz.answer5[1].checked == true) document.quiz.a5.value=" B";
if (document.quiz.answer5[2].checked == true) document.quiz.a5.value=" C";
if (document.quiz.answer5[3].checked == true) document.quiz.a5.value=" D";
if (document.quiz.answer6[0].checked == true) document.quiz.a6.value=" A";
if (document.quiz.answer6[1].checked == true) document.quiz.a6.value=" B";
if (document.quiz.answer6[2].checked == true) document.quiz.a6.value=" C";
if (document.quiz.answer6[3].checked == true) document.quiz.a6.value=" D";
if (document.quiz.answer7[0].checked == true) document.quiz.a7.value=" A";
if (document.quiz.answer7[1].checked == true) document.quiz.a7.value=" B";
if (document.quiz.answer7[2].checked == true) document.quiz.a7.value=" C";
if (document.quiz.answer7[3].checked == true) document.quiz.a7.value=" D";
if (document.quiz.answer8[0].checked == true) document.quiz.a8.value=" A";
if (document.quiz.answer8[1].checked == true) document.quiz.a8.value=" B";
if (document.quiz.answer8[2].checked == true) document.quiz.a8.value=" C";
if (document.quiz.answer8[3].checked == true) document.quiz.a8.value=" D";
if (document.quiz.answer9[0].checked == true) document.quiz.a9.value=" A";
if (document.quiz.answer9[1].checked == true) document.quiz.a9.value=" B";
if (document.quiz.answer9[2].checked == true) document.quiz.a9.value=" C";
if (document.quiz.answer9[3].checked == true) document.quiz.a9.value=" D";
if (document.quiz.answer10[0].checked == true) document.quiz.a10.value=" A";
if (document.quiz.answer10[1].checked == true) document.quiz.a10.value=" B";
if (document.quiz.answer10[2].checked == true) document.quiz.a10.value=" C";
if (document.quiz.answer10[3].checked == true) document.quiz.a10.value=" D";
}
//function total the quiz answers, assigns correct answers in array.
function total() {
var tot = 0;
//answer#[0-3] 0=A, 1=B, 2=C, 3=D
if (document.quiz.answer1[2].checked == true) {tot += 1; document.quiz.q1.value="C";}
if (document.quiz.answer2[0].checked == true) {tot += 1; document.quiz.q2.value="A";}
if (document.quiz.answer3[3].checked == true) {tot += 1; document.quiz.q3.value="D";}
if (document.quiz.answer4[3].checked == true) {tot += 1; document.quiz.q4.value="D";}
if (document.quiz.answer5[1].checked == true) {tot += 1; document.quiz.q5.value="B";}
if (document.quiz.answer6[1].checked == true) {tot += 1; document.quiz.q6.value="B";}
if (document.quiz.answer7[3].checked == true) {tot += 1; document.quiz.q7.value="D";}
if (document.quiz.answer8[1].checked == true) {tot += 1; document.quiz.q8.value="B";}
if (document.quiz.answer9[2].checked == true) {tot += 1; document.quiz.q9.value="C";}
if (document.quiz.answer10[0].checked == true) {tot += 1; document.quiz.q10.value="A";}
if (tot==10) {document.quiz.totalscore.value ="10 sur 10, t'es un génie !";}
else {document.quiz.totalscore.value = "T'as " + tot + " sur 10.";}
}
// --></SCRIPT>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<bgsound src="lullyprelude.mid" loop="-1">
</HEAD>
<BODY bgColor=#800000 link=#000000 text=#000000 vLink=#666666>
<H1 align="center"> </H1>
<FORM name=quiz><DL>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="405" height="46">
<param name="URL" ref value="16 Music Factory - Gonna Make You Sweat.mp3">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="2">
<param name="autoStart" value="0">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="10716">
<param name="_cy" value="1217">
</object>
</p>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 1 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font> <b>
</b></font><b><font face="Arial Black" size="4">Queen</font></b><font face="Arial Black"><INPUT name=answer1 type=radio><BR><font color="#FFFF00"> B</font>
</font><b><font face="Arial Black">Roling Stoon </font></b><font face="Arial Black"> <INPUT name=answer1
type=radio><BR><font color="#FFFF00"> C</font> </font>
<b><font face="Arial Black">Music Factory</font></b><font face="Arial Black"> <INPUT name=answer1 type=radio> <BR><font color="#FFFF00"> D</font>
</font><b><font face="Arial Black">Coolio</font></b><font face="Arial Black"><b> </b> <INPUT
name=answer1 type=radio></font></DD></DL>
<P></P>
<DL>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="405" height="46">
<param name="URL" ref value="2 The Clash - Rock The Casbah.mp3">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="0">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="10769">
<param name="_cy" value="1217">
</object>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 2 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font> <b>
<font size="4">Clash</font></b> <INPUT name=answer2 type=radio><BR><font color="#FFFF00"> B</font>
<b></b><font size="4"><b>Queen</b> </font> <INPUT name=answer2
type=radio><BR><font color="#FFFF00"> C</font>
<b><font size="4">Inxs</font></b><INPUT name=answer2 type=radio><BR><font color="#FFFF00"> D</font>
<b><font size="4">Doors</font> </b> <INPUT
name=answer2 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 3 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font><b><font size="4"> Madona
</font></b> <INPUT name=answer3 type=radio><BR><font color="#FFFF00"> B</font>
<b><font size="4">Lio</font></b> <INPUT name=answer3
type=radio><BR><font color="#FFFF00"> C</font>
<b><font size="4">Céline Dion </font></b> <INPUT name=answer3 type=radio><BR><font color="#FFFF00"> D</font>
<b><font size="4">Anastasia </font></b> <INPUT
name=answer3 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 4 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A </font><b>
<font size="4">Queen</font></b><font color="#FFFF00">
<INPUT name=answer4 type=radio><BR> B </font>
<font size="4"><b>Police</b></font><b><font size="4"> </font></b>
<INPUT name=answer4
type=radio><BR><font color="#FFFF00"> C</font>
<b><font size="4">Doors </font></b> <INPUT name=answer4 type=radio><BR><font color="#FFFF00"> D</font>
<font size="4"><b>Music Factory</b></font> <INPUT
name=answer4 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 5 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font>
<font size="4"><b>Doors</b></font> <INPUT name=answer5 type=radio><BR><font color="#FFFF00"> B</font>
<b><font size="4">Queen</font></b><INPUT name=answer5
type=radio><BR><font color="#FFFF00"> C</font>
<font size="4"><b>Police</b></font> <INPUT name=answer5 type=radio><BR><font color="#FFFF00"> D</font> <b><font size="4">
Mudic Factory</font></b> <INPUT
name=answer5 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 6 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font>
<font size="4"><b>Queen</b></font><b><font size="4"> </font></b> <INPUT name=answer6 type=radio><BR><font color="#FFFF00"> B
</font><b><font size="4">Policet </font></b> <INPUT name=answer6
type=radio><BR><font color="#FFFF00"> C</font>
<font size="4"><b>Music Factory</b></font> <INPUT name=answer6 type=radio><BR><font color="#FFFF00"> D</font>
<font size="4"><b>Doors</b></font> <INPUT
name=answer6 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 7 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font>
<font size="4"><b>Anastsia</b></font> <INPUT name=answer7 type=radio><BR><font color="#FFFF00"> B</font><b><font size="4">
Lio</font></b><INPUT name=answer7
type=radio><BR><font color="#FFFF00"> C</font>
<font size="4"><b>Madona</b></font> <INPUT name=answer7 type=radio><BR><font color="#FFFF00"> D
</font><font size="4"><b>Celine Dion</b></font><b><font size="4"> </font></b> <INPUT
name=answer7 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 8 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A </font><b>
<font size="4">Queen</font></b> <INPUT name=answer8 type=radio><BR><font color="#FFFF00"> B</font>
<font size="4"><b>Supertram</b></font> <INPUT name=answer8
type=radio><BR><font color="#FFFF00"> C</font>
<font size="4"><b>Police</b></font> <INPUT name=answer8 type=radio><BR><font color="#FFFF00"> D</font>
<font size="4"><b>Doors</b></font> <INPUT
name=answer8 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 9 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font> <b>
<font size="4">le frère du Roi</font></b> <INPUT name=answer9 type=radio><BR><font color="#FFFF00"> B</font><b><font size="4">
le marin le plus expérimenté</font></b> <INPUT name=answer9
type=radio><BR><font color="#FFFF00"> C</font> l<b><font size="4">e fils aîné du Roi
</font></b> <INPUT name=answer9 type=radio><BR><font color="#FFFF00"> D</font>
<b><font size="4">Le poisonnier du Roi </font></b> <INPUT
name=answer9 type=radio></font></DD></DL>
<P></P>
<DL>
<DD><b><font size="6"> <font color="#E88A0D">Chanson 10 </font></font>
</b><font face="Arial Black"><font color="#FFFF00"> A</font> <b>
<font size="4">1715</font></b> <INPUT name=answer10 type=radio><BR><font color="#FFFF00"> B</font>
<b><font size="4">1710 </font></b> <INPUT name=answer10
type=radio><BR><font color="#FFFF00"> C</font>
<b><font size="4">1795 </font></b> <INPUT name=answer10 type=radio><BR><font color="#FFFF00"> D</font>
<b><font size="4">1690 </font></b> <INPUT
name=answer10 type=radio></font></DD></DL>
<HR>
<TABLE border=0 cellPadding=8 width=704>
<TBODY>
<TR>
<TD align=middle width=218>
<P align=center><font face="Arial Black"><INPUT onclick="total(); display_answers();" type=button value=Résultats>
</font>
<P align=center> </P>
<P align=center><font color="#00FFFF" face="Arial Black">Ton</font><font face="Arial Black"><font color="#00FFFF">
score:</font><BR><INPUT name=totalscore size=37><BR><INPUT type=reset value=Recommencer> </font> </P></TD>
<TD align=right noWrap vAlign=top width=171><b>
<font face="Arial Black" color="#FF0000">Tes
réponses</font></b><font face="Arial Black" color="#FFFF00"><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson 1:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=a1 size=2><BR></font><font face="Arial Black" color="#E88A0D">Chanson 2:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a2 size=2><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson 3:</font><font face="Arial Black" color="#FFFF00"> <INPUT
name=a3 size=2><BR></font><font face="Arial Black" color="#E88A0D">Chanson 4:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a4 size=2><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson 5:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a5
size=2><BR></font><font face="Arial Black" color="#E88A0D">Chanson 6:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a6 size=2><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson 7:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a7 size=2><BR>
</font><font face="Arial Black" color="#E88A0D">Chanson
8:</font><font face="Arial Black" color="#FFFF00"> <INPUT name=a8 size=2><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson 9: </font><font face="Arial Black" color="#FFFF00"> <INPUT name=a9 size=2><BR></font>
<font face="Arial Black" color="#E88A0D">Chanson10:</font><font face="Arial Black" color="#FFFF00"> <INPUT
name=a10 size=2></font></TD>
<TD align=right vAlign=top width=253>
<font face="Arial Black" color="#FF0000">
<b>Les bonnes réponses</b></font><font face="Arial Black" color="#00FFFF"><BR></font>
<font face="Arial Black" color="#E88A0D">
Chanson 1:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q1 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 2:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q2 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 3:</font><font face="Arial Black" color="#FFFF00">
<INPUT
name=q3 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 4: </font><font face="Arial Black" color="#FFFF00">
<INPUT name=q4 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 5:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q5
size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 6:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q6 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 7:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q7 size=2><BR>
</font><font face="Arial Black" color="#E88A0D">
Chanson
8:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q8 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson 9:</font><font face="Arial Black" color="#FFFF00">
<INPUT name=q9 size=2><BR></font><font face="Arial Black" color="#E88A0D">
Chanson10:</font><font face="Arial Black" color="#FFFF00">
<INPUT
name=q10 size=2></font></TD></TR></TBODY></TABLE></FORM>
<p align="right"> </p>
<p align="right"> </p>
</BODY></HTML> |
Partager