<html>
<head>
</head>
<body bgcolor="#FFFFFF" text="#000080" link="#FF0000" vlink="#9F0000">
<p align="center">
<p align="center"> </p>
<script language="JavaScript">
<!-- Begin
var ans = new Array;
var done = new Array;
var score = 0;
ans[1] = "c";
ans[2] = "a";
function Engine(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
alert("Wrong!\n\nYour score is now: " + score);
}
else {
alert("You have already answered that!");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("Correct!\n\nYour score is now: " + score);
}
else {
alert("You have already answered that!");
}
}
}
</script>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<p align="center"> </p>
<!-- TWO STEPS TO INSTALL USER QUIZ: 1. Paste the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<font size="6" face="Arial">
<p>South Park Quiz #1</font><br>
</p>
<p><b>Objective: answer 7 questions correctly. JavaScript required!</b></p>
<p><noscript>JavaScript is <i><b>disabled</b></i>. Get Netscape 3.0 or turn it on!</noscript> </p>
<hr noshade>
<FORM>
<b><p>1. What is the name of the Newspaper Mr Garrison is reading at the quarry?</b></p>
<p><input type="radio" value="a" onclick="Engine(1, this.value)">Time<br>
<input type="radio" value="b" onclick="Engine(1, this.value)">Rolling Stone<br>
<input type="radio" value="c" onclick="Engine(1, this.value)">RCKY MTN News<br>
<input type="radio" value="d" onclick="Engine(1, this.value)">Spin</p>
<p><b>2. Who is on the cover of the magazine?</b></p>
<p><input type="radio" value="a" onclick="Engine(2, this.value)">Mr Hankey<br>
<input type="radio" value="b" onclick="Engine(2, this.value)">Kenny<br>
<input type="radio" value="c" onclick="Engine(2, this.value)">Cartman<br>
<input type="radio" value="d" onclick="Engine(2, this.value)">Mr Hat</p>
</FORM>
<!-- Script Size: 5.64 KB -->
<p><br>
</body>
</html>