View Full Version : More Quiz problems


goodcharlotte88
06-23-2003, 09:22 AM
Theres a lot of threads like this one. I just can't see what i did wrong...here's my code. Please help and ill be forever greatful..



<SCRIPT LANGUAGE="JavaScript">
<!--
function process()
{
var qnaraku = 0;
var qsessh = 0;
var qyura = 0;
var qkouga = 0;
var f = document.f;
var i = 0;

for (i = 0; i < f.one.length; i++) if (f.one[i].checked) value = f.one[i].value;
if (value == "1") { qnaraku++; }
if (value == "2") { qsessh++; }
if (value == "3") { qyura++; }
if (value == "4") { qkouga++; }



for (i = 0; i < f.two.length; i++) if (f.two[i].checked) value = f.two[i].value;
if (value == "1") { qsessh++; }
if (value == "2") { qnaraku++; }
if (value == "3") { qkouga++; }
if (value == "4") { qyura++; }



for (i = 0; i < f.three.length; i++) if (f.three[i].checked) value = f.three[i].value;
if (value == "1") { qkouga++; }
if (value == "2") { qyura++; }
if (value == "3") { qsessh++; }
if (value == "4") { qnaraku++; }




for (i = 0; i < f.four.length; i++) if (f.four[i].checked) value = f.four[i].value;
if (value == "1") { qsessh++; }
if (value == "2") { qkouga++; }
if (value == "3") { qyura++; }
if (value == "4") { qnaraku++; }




for (i = 0; i < f.five.length; i++) if (f.five[i].checked) value = f.five[i].value;
if (value == "1") { qnaraku++; }
if (value == "2") { qyura++; }
if (value == "3") { qsessh++; }
if (value == "4") { qkouga++; }

for (i = 0; i < f.six.length; i++) if (f.six[i].checked) value = f.six[i].value;
if (value == "1") { qkouga++; }
if (value == "2") { qnaraku++; }
if (value == "3") { qyura++; }
if (value == "4") { qsessh++; }


for (i = 0; i < f.seven.length; i++) if (f.seven[i].checked) value = f.seven[i].value;
if (value == "1") { qyura++; }
if (value == "2") { qnaraku++; }
if (value == "3") { qsessh++; }
if (value == "4") { qkouga++; }


var out = "qkouga";
i = qkouga;
if (qkouga > i) { out = "qkouga"; i = qkouga; }
if (qnaraku > i) { out = "qnaraku"; i = qnaraku; }
if (qsessh > i) { out = "qsessh"; i = qsessh; }
if (qyura > i) { out = "qyura"; i = qyura; }


location.href = out + ".html";
}
function err(msg, url, line)
{
location.href = "error.html";
}
//window.onerror = err;
// -->
</SCRIPT>
</head>






</center></center>
<form name="f">


<u>Character Test 2</u><br>
This time with the villain demon thingys..<br><BR>


<B>1. You could resemble..</b><BR>
<input type="radio" name="one" value="1">Gorilla<br>
<input type="radio" name="one" value="2">?<br>
<input type="radio" name="one" value="3">cat. *meow*<br>
<input type="radio" name="one" value="4">Wolf.<br>
<br><br>


<b>2. You are..</b><br>
<input type="radio" name="two" value="1">smart<br>
<input type="radio" name="two" value="2">mysterious<br>
<input type="radio" name="two" value="3">playful<br>
<input type="radio" name="two" value="4">loving<br>
<br>

<b>3. The strangest thing about you is..</b><br>
<input type="radio" name="three" value="1">How you chose to live<br>
<input type="radio" name="three" value="2">Your obsessions..<br>
<input type="radio" name="three" value="3">Your Clothes<br>
<input type="radio" name="three" value="4">Your true self.<br>
</font><br><br>

<b>4. Your clothes are:</b><br>
<input type="radio" name="four" value="1">Eccentric, very "original"<br>
<input type="radio" name="four" value="2">Like others related to me.<br>
<input type="radio" name="four" value="3">Very skimpy stuff man..<br>
<input type="radio" name="four" value="4">Hm..Well, I am always changing clothes..<br>

<br>


<b>5. Why do/would you dislike Inu yasha?</b><br>
<input type="radio" name="five" value="1">I hold no grudge against Inuyasha..<br>
<input type="radio" name="five" value="2">I want his hair, ^^^^ him!<br>
<input type="radio" name="five" value="3">He deserves to die.<br>
<input type="radio" name="five" value="4">He stole my woman!<br>
<BR>


<b>6. Choice of weapon..</b><br>
<input type="radio" name="six" value="1">My speed will do!<br>
<input type="radio" name="six" value="2">Why fight when I could just have someone else?<br>
<input type="radio" name="six" value="3">Hair..Hair..yeah...<br>
<input type="radio" name="six" value="4">Tensaiga! <br><BR>

<b>7. Well, goodbye.</b><br>
<input type="radio" name="seven" value="1">I like your hair.<br>
<input type="radio" name="seven" value="2">You are boring me to death.<br>
<input type="radio" name="seven" value="3">yawns..I'm w/ ^^<br>
<input type="radio" name="seven" value="4">Your NOT Kagome!<br>


<input type="button" value="Go" onclick="process();" style="font-family:veranda; font-size=8pt; border:1; border-color:white; border-style:solid; background-color:white"><br><br><br>

goodcharlotte88
06-23-2003, 09:24 AM
nevermind i figured it out