13/08/2004, 06:52
|
| | Fecha de Ingreso: agosto-2004 Ubicación: Andorra
Mensajes: 1
Antigüedad: 20 años, 5 meses Puntos: 0 | |
Aver si t respondo Cita:
Iniciado por Sette tunait, nadie me ha respondido nada, por lo que te considero mi única opción, ayudame, please.
Hola sette,
t passo una cosita aver si t sirve ok? ya m diras! ;)
esto en el head : <SCRIPT LANGUAGE="JavaScript">
var resp = new Array;
var done = new Array;
var score = 0;
resp[1] = "a";
resp[2] = "a";
resp[3] = "a";
resp[4] = "a";
resp[5] = "a";
resp[6] = "c";
resp[7] = "c";
resp[8] = "c";
resp[9] = "c";
resp[10] = "c";
function Engine(question, answer) {
if (answer != resp[question]) {
if (!done[question]) {
done[question] = -1;
alert("Mal!\n\nTu punctuacion aora es d : " + score);
}
else {
alert("Ya as respuesto a eso!");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("Correcto!\n\nTu punctuacion es d : " + score);
}
else {
alert("Ya as respuesto a eso!");
}
}
}
function NextLevel () {
if (score > 10) {
alert("Tramposoooo!");
}
if (score >= 7 && score <= 11) {
alert("Accesso permitido! no hay mas niveles")
}
else {
alert("Accesso no permitido! necessitas 7 puntos pa passar al siguiente level!.")
}
}
// End -->
</SCRIPT>
y en el Body esto : <FORM>
<b>1. P1<i></i></b>
<p>
<input type=radio value="a" onClick="Engine(1, this.value)">
R11<br>
<input type=radio value="b" onClick="Engine(1, this.value)">
R12<br>
<input type=radio value="c" onClick="Engine(1, this.value)">
R13<br>
<input type=radio value="d" onClick="Engine(1, this.value)">
R14 <p> <b>2. P2</b>
<p>
<input type=radio value="a" onClick="Engine(2, this.value)">
R21<br>
<input type=radio value="b" onClick="Engine(2, this.value)">
R22<br>
<input type=radio value="c" onClick="Engine(2, this.value)">
R23<br>
<input type=radio value="d" onClick="Engine(2, this.value)">
R24
<p> <b>3. P3</b>
<p>
<input type=radio value="a" onClick="Engine(3, this.value)">
P31<br>
<input type=radio value="b" onClick="Engine(3, this.value)">
P32<br>
<input type=radio value="c" onClick="Engine(3, this.value)">
P33<br>
<input type=radio value="d" onClick="Engine(3, this.value)">
P34
<p> <b>4. P4</b>
<p>
<input type=radio value="a" onClick="Engine(4, this.value)">
R41<br>
<input type=radio value="b" onClick="Engine(4, this.value)">
R42<br>
<input type=radio value="c" onClick="Engine(4, this.value)">
R43<br>
<input type=radio value="d" onClick="Engine(4, this.value)">
R44
<p> <b>5. P5</b>
<p>
<input type=radio value="a" onClick="Engine(5, this.value)">
R51<br>
<input type=radio value="b" onClick="Engine(5, this.value)">
R52<br>
<input type=radio value="c" onClick="Engine(5, this.value)">
R53<br>
<input type=radio value="d" onClick="Engine(5, this.value)">
R54
<p> <b>6. P6</b>
<p>
<input type=radio value="a" onClick="Engine(6, this.value)">
R61<br>
<input type=radio value="b" onClick="Engine(6, this.value)">
R62<br>
<input type=radio value="c" onClick="Engine(6, this.value)">
R63<br>
<input type=radio value="d" onClick="Engine(6, this.value)">
R64
<p> <b>7. P7</b>
<p>
<input type=radio value="a" onClick="Engine(7, this.value)">
R71<br>
<input type=radio value="b" onClick="Engine(7, this.value)">
R72<br>
<input type=radio value="c" onClick="Engine(7, this.value)">
R73<br>
<input type=radio value="d" onClick="Engine(7, this.value)">
R74
<p> <b>8.P8</b>
<p>
<input type=radio value="a" onClick="Engine(8, this.value)">
R81<br>
<input type=radio value="b" onClick="Engine(8, this.value)">
R82<br>
<input type=radio value="c" onClick="Engine(8, this.value)">
R83<br>
<input type=radio value="d" onClick="Engine(8, this.value)">
R84
<p> <b>9. P9</b>
<p>
<input type=radio value="a" onClick="Engine(9, this.value)">
R91<br>
<input type=radio value="b" onClick="Engine(9, this.value)">
R92<br>
<input type=radio value="c" onClick="Engine(9, this.value)">
R93<br>
<input type=radio value="d" onClick="Engine(9, this.value)">
R94
<p> <b>10. P10</b>
<p>
<input type=radio value="a" onClick="Engine(10, this.value)">
R101<br>
<input type=radio value="b" onClick="Engine(10, this.value)">
R102<br>
<input type=radio value="c" onClick="Engine(10, this.value)">
R103<br>
<input type=radio value="d" onClick="Engine(10, this.value)">
R104
<p>
<CENTER>
<input type=button onClick="NextLevel()" value="Prox >>">
</CENTER>
</FORM>
espero que t aya servio!
saludosss!!!
Nadie nace con la sabiduria! |