cowgirl_bebop
07-07-2003, 03:12 AM
*cough* because I'm a person with waaaaaaay too much time on their hands, I decided to make a quiz and stuff. I've checked and double checked my code, yet when I click on the button nothing happens.
And yes I have
1) I have <form name="f">
2) Results page are complete and in the same directory.
This is the code I'm using
<html>
<head>
<title>Which Dawn Character are you?</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function process()
{
var dawn = 0;
var death = 0;
var lucifer = 0;
var ahuramazda = 0;
var darrian = 0;
var mary = 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") { ahuramazda++; }
if (value == "2") { dawn++; }
if (value == "3") { mary++; }
if (value == "4") { lucifer++; }
if (value == "5") { darrian++; }
if (value == "6") { death++; }
for (i = 0; i < f.two.length; i++) if (f.two[i].checked) value = f.two[i].value;
if (value == "1") { darrian++; dawn++; }
if (value == "2") { mary++; death++; }
if (value == "3") { lucifer++; }
if (value == "4") { ahuramazda++; }
for (i = 0; i < f.three.length; i++) if (f.three[i].checked) value = f.three[i].value;
if (value == "1") { death++; }
if (value == "2") { dawn++; }
if (value == "3") { mary++; }
if (value == "4") { darrian++; }
if (value == "5") { ahuramazda++; }
if (value == "6") { lucifer++; }
for (i = 0; i < f.four.length; i++) if (f.four[i].checked) value = f.four[i].value;
if (value == "1") { lucifer++; }
if (value == "2") { darrian++; }
if (value == "3") { dawn++; }
if (value == "4") { ahuramazda++; )
if (value == "5") { mary++; }
if (value == "6") { death++; }
for (i = 0; i < f.five.length; i++) if (f.five[i].checked) value = f.five[i].value;
if (value == "1") { darrian++; death++; }
if (value == "2") { mary++; }
if (value == "3") { dawn++; }
if (value == "4") { lucifer++; }
if (value == "5") { ahuramazda++; }
var out = "dawn";
i = dawn;
if (lucifer > i) { out = "lucifer"; i = lucifer; }
if (ahuramazda > i) { out = "ahuramazda"; i = ahuramazda; }
if (darrian > i) { out = "darrian"; i = darrian; }
if (mary > i) { out = "mary"; i = mary; }
if {death > i) { out = "death"; i = death; }
location.href = out + ".html";
}
function err(msg, url, line)
{
location.href = "error.html";
}
//window.onerror = err;
// -->
</SCRIPT>
</head>
<form name="f">
<font face=verdana size=1>
<b>1. Finish off the sentence - "Love is ... "</b>
<br><br>
<input type="radio" name="one" value="1">"...nothing but a game to me."<br>
<input type="radio" name="one" value="2">"...part of the eternal cycle."<br>
<input type="radio" name="one" value="3">"...something special, something different."<br>
<input type="radio" name="one" value="4">"...something that eats you up inside."<br>
<input type="radio" name="one" value="5">"...a necessity but something that is not necessarily understood."<br>
<input type="radio" name="one" value="6">"...a risk you have to be willing to take."
<br><br>
<b>2. Your preferred "weapon" of choice is ...</b>
<br><br>
<input type="radio" name="two" value="1">a sword<br>
<input type="radio" name="two" value="2">magic<br>
<input type="radio" name="two" value="3">your intellect<br>
<input type="radio" name="two" value="4">a gun<br>
<input type="radio" name="two" value="5">your presence<br>
<input type="radio" name="two" value="6">whatever you can get your hands on
<br><br>
<b>3. The most attractive trait to you is ...</b>
<br><br>
<input type="radio" name="three" value="1">Innocence<br>
<input type="radio" name="three" value="2">Knowledge<br>
<input type="radio" name="three" value="3">Understanding<br>
<input type="radio" name="three" value="4">Sensibility<br>
<input type="radio" name="three" value="5">Submissiveness<br>
<input type="radio" name="three" value="6">Leadership
<br><br>
<b>4. Which tarot card best describes you?</b>
<br><br>
<input type="radio" name="four" value="1">The Deciever/The Devil/Death - <i>You tricked me; now I know.</i><br>
<input type="radio" name="four" value="2">The Fool - <i>I choose life, becoming.</i><br>
<input type="radio" name="four" value="3">The Hanged One - <i>I give me up so that I may serve you.</i><br>
<input type="radio" name="four" value="4">The Hierophant - <i>S/he who knows The Path guides The Way.</i><br>
<input type="radio" name="four" value="5">Judgement - <i>Dear Mother, help me express my God/dess.</i><br>
<input type="radio" name="four" value="6">Transition - <i>All things shall pass.</i>
<br><br>
<b>5. In your opinion - who is the most important minor character in the <i>Dawn</i> series?</b>
<br><br>
<input type="radio" name="five" value="1">The Atrocity<br>
<input type="radio" name="five" value="2">Ilmarinen<br>
<input type="radio" name="five" value="3">Mary's Mother<br>
<input type="radio" name="five" value="4">Jaynis<br>
<input type="radio" name="five" value="5">Adelle<br>
<input type="radio" name="five" value="6">Dolt! S/he's not on here!
<br><br><br>
<input type="button" value="a rose by any other name" onclick="process();">
<br><br><p>
</body>
</html>
Click here (http://animateme.topcities.com/Dawn/quiz/index.html) to see the actual page.
And yes I have
1) I have <form name="f">
2) Results page are complete and in the same directory.
This is the code I'm using
<html>
<head>
<title>Which Dawn Character are you?</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function process()
{
var dawn = 0;
var death = 0;
var lucifer = 0;
var ahuramazda = 0;
var darrian = 0;
var mary = 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") { ahuramazda++; }
if (value == "2") { dawn++; }
if (value == "3") { mary++; }
if (value == "4") { lucifer++; }
if (value == "5") { darrian++; }
if (value == "6") { death++; }
for (i = 0; i < f.two.length; i++) if (f.two[i].checked) value = f.two[i].value;
if (value == "1") { darrian++; dawn++; }
if (value == "2") { mary++; death++; }
if (value == "3") { lucifer++; }
if (value == "4") { ahuramazda++; }
for (i = 0; i < f.three.length; i++) if (f.three[i].checked) value = f.three[i].value;
if (value == "1") { death++; }
if (value == "2") { dawn++; }
if (value == "3") { mary++; }
if (value == "4") { darrian++; }
if (value == "5") { ahuramazda++; }
if (value == "6") { lucifer++; }
for (i = 0; i < f.four.length; i++) if (f.four[i].checked) value = f.four[i].value;
if (value == "1") { lucifer++; }
if (value == "2") { darrian++; }
if (value == "3") { dawn++; }
if (value == "4") { ahuramazda++; )
if (value == "5") { mary++; }
if (value == "6") { death++; }
for (i = 0; i < f.five.length; i++) if (f.five[i].checked) value = f.five[i].value;
if (value == "1") { darrian++; death++; }
if (value == "2") { mary++; }
if (value == "3") { dawn++; }
if (value == "4") { lucifer++; }
if (value == "5") { ahuramazda++; }
var out = "dawn";
i = dawn;
if (lucifer > i) { out = "lucifer"; i = lucifer; }
if (ahuramazda > i) { out = "ahuramazda"; i = ahuramazda; }
if (darrian > i) { out = "darrian"; i = darrian; }
if (mary > i) { out = "mary"; i = mary; }
if {death > i) { out = "death"; i = death; }
location.href = out + ".html";
}
function err(msg, url, line)
{
location.href = "error.html";
}
//window.onerror = err;
// -->
</SCRIPT>
</head>
<form name="f">
<font face=verdana size=1>
<b>1. Finish off the sentence - "Love is ... "</b>
<br><br>
<input type="radio" name="one" value="1">"...nothing but a game to me."<br>
<input type="radio" name="one" value="2">"...part of the eternal cycle."<br>
<input type="radio" name="one" value="3">"...something special, something different."<br>
<input type="radio" name="one" value="4">"...something that eats you up inside."<br>
<input type="radio" name="one" value="5">"...a necessity but something that is not necessarily understood."<br>
<input type="radio" name="one" value="6">"...a risk you have to be willing to take."
<br><br>
<b>2. Your preferred "weapon" of choice is ...</b>
<br><br>
<input type="radio" name="two" value="1">a sword<br>
<input type="radio" name="two" value="2">magic<br>
<input type="radio" name="two" value="3">your intellect<br>
<input type="radio" name="two" value="4">a gun<br>
<input type="radio" name="two" value="5">your presence<br>
<input type="radio" name="two" value="6">whatever you can get your hands on
<br><br>
<b>3. The most attractive trait to you is ...</b>
<br><br>
<input type="radio" name="three" value="1">Innocence<br>
<input type="radio" name="three" value="2">Knowledge<br>
<input type="radio" name="three" value="3">Understanding<br>
<input type="radio" name="three" value="4">Sensibility<br>
<input type="radio" name="three" value="5">Submissiveness<br>
<input type="radio" name="three" value="6">Leadership
<br><br>
<b>4. Which tarot card best describes you?</b>
<br><br>
<input type="radio" name="four" value="1">The Deciever/The Devil/Death - <i>You tricked me; now I know.</i><br>
<input type="radio" name="four" value="2">The Fool - <i>I choose life, becoming.</i><br>
<input type="radio" name="four" value="3">The Hanged One - <i>I give me up so that I may serve you.</i><br>
<input type="radio" name="four" value="4">The Hierophant - <i>S/he who knows The Path guides The Way.</i><br>
<input type="radio" name="four" value="5">Judgement - <i>Dear Mother, help me express my God/dess.</i><br>
<input type="radio" name="four" value="6">Transition - <i>All things shall pass.</i>
<br><br>
<b>5. In your opinion - who is the most important minor character in the <i>Dawn</i> series?</b>
<br><br>
<input type="radio" name="five" value="1">The Atrocity<br>
<input type="radio" name="five" value="2">Ilmarinen<br>
<input type="radio" name="five" value="3">Mary's Mother<br>
<input type="radio" name="five" value="4">Jaynis<br>
<input type="radio" name="five" value="5">Adelle<br>
<input type="radio" name="five" value="6">Dolt! S/he's not on here!
<br><br><br>
<input type="button" value="a rose by any other name" onclick="process();">
<br><br><p>
</body>
</html>
Click here (http://animateme.topcities.com/Dawn/quiz/index.html) to see the actual page.