![]()
![]()
![]()
![]()
Perchè mi da "errore nella visualizzazione della pagina"?
Qualcuno sa spiegarmelo? Forse è semplicemente uno stupidissimo errore... è ke non sono ancora tanto esperto...
![]()
![]()
![]()
![]()
La pagina è qesta:
<html>
<head>
<title>QUIZ DI VASCO</title>
<script language="JavaScript">
var ans = new Array();
var done = new Array();
var score = 0;
ans[1] = "a";
function Engine(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
alert("GAME OVER! MI DISPIACE... SARA' PER UN'ALTRA VOLTA.);
}
else {
alert("GAME OVER!");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("BRAVO, RISPOSTA ESATTA\n\nCONTINUA COSI');
}
else {
alert("HAI GIA' RISPOSTO. CLICCA SU "AVANTI");
}
}
}
function NextLevel(question, answer, form) {
if (score = 0) {
alert("GAME OVER!");
onclick=self.location.href="sitoquiz.htm";
}
else {
alert("DOMANDA NUMERO 2");
onclick=self.location.href="d2.htm"
}
}
</script>
<base target="_self">
</head>
<body topmargin="10" bgcolor="black" text="white" link="white" vlink="white" alink="white">
<center><font color="red" size="5">QUIZ</font></center>
<center>
<table width="80%">
<tr bgcolor="blue">
<td bgcolor="blue">
<font face="Arial" size="2" color="yellow">
1. Quale tra questi animali non è un mammifero?</font></td>
</tr>
</table>
<table width="80%" border="0">
<tr>
<td align="center" width="50%"><font color="yellow"><font face="Arial" size="2">
<input type="checkbox" value="a"
onclick="Engine(1, this.value)">LO SQUALO</font>
</font></td>
<td align="center" width="50%"><font color="yellow"><font face="Arial" size="2">
<input type="checkbox" value="b"
onclick="Engine(1, this.value)">IL BISONTE</font>
</font></td>
</tr>
<tr>
<td align="center" width="50%"><font color="yellow"><font face="Arial" size="2">
<input type="checkbox" value="c"
onclick="Engine(1, this.value)">L'ELEFANTE</font>
</font></td>
<td align="center" width="50%"><font color="yellow"><font face="Arial" size="2">
<input type="checkbox" value="d"
onclick="Engine(1, this.value)">LA GIRAFFA</font>
</font></td>
</tr>
</table>
</table></center>
<center><table>
<tr>
<td align="left">
<p align="center"><font face="arial" size="2"><input type="button" value="AVANTI >>" onclick="NextLevel(2, this.value, this.form)"></font></p>
</td>
</tr>
</table></center>
</body>
</html>