GustavMedlem sedan jan. 20001 932 inlägg Nu har jag gjort precis som du hade gjort och det funkade perfekt...fast nu kom jag på att jag måste minst ha 40 frågor.
Jag har infogat alla frågorna men det är ju såklart nåt som inte funkar igen...har du lust??? (eller nån annan såklart... ;)
Klicka här!
Vielen dank...
M@rtinMedlem sedan dec. 19992 085 inlägg Nja jag kan inte hitta något fel men troligen så är det någon siffra du glömt aTT byta ut så att det t.ex. finns två stycken form11.. men det är mycket svårt att hitta..
Det här är egentligen inte ett så bra script när man ska ha så här många frågor.. det skulle gå att göra det lite enklare.. menmen.. leta efter sifferfel.. =)
//M@rtin
M@rtinMedlem sedan dec. 19992 085 inlägg Efter en lite nogrannare koll så hittade jag lite sifferfel.. byt denna kod:
if (result9 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form9.check9.checked = true}
else {document.form9.check9.checked = false}
if (result10 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form10.check10.checked = true}
else {document.form9.check9.checked = false}
if (result11 != 3){ // In form1 the correct answer is the third OPTION VALUE
document.form11.check11.checked = true}
else {document.form11.check11.checked = false}
if (result12 != 4){ // In form2 the correct answer is the second OPTION VALUE
document.form12.check12.checked = true}
else {document.form12.check12.checked = false}
if (result13 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form13.check13.checked = true}
else {document.form3.check3.checked = false}
if (result14 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form14.check14.checked = true}
else {document.form14.check14.checked = false}
mot:
if (result9 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form9.check9.checked = true}
else {document.form9.check9.checked = false}
if (result10 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form10.check10.checked = true}
else {document.form10.check10.checked = false}
if (result11 != 3){ // In form1 the correct answer is the third OPTION VALUE
document.form11.check11.checked = true}
else {document.form11.check11.checked = false}
if (result12 != 4){ // In form2 the correct answer is the second OPTION VALUE
document.form12.check12.checked = true}
else {document.form12.check12.checked = false}
if (result13 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form13.check13.checked = true}
else {document.form13.check13.checked = false}
if (result14 != 2){ // In form3 the correct answer is the second OPTION VALUE
document.form14.check14.checked = true}
else {document.form14.check14.checked = false}
Så tror jag att det ska funka.. fast det kan ju finnas fler sifferfel som jag missat :(
//M@rtin
GustavMedlem sedan jan. 20001 932 inlägg OJ!
Fan, jag glömde att skriva in igår att jag fick det att funka.
Sorry...men jag tackar så mycket för din hjälp.
TACK! ;)