View Full Version : Quiz help: Where do you edit the site URL to go to that shows what per...


zcbgameshark
03-01-2003, 10:01 PM
son you are when you click "submit." Oh, and I got the quiz HTML for `````````````` is that helps. The HTML is:

<html>
<head>

<SCRIPT LANGUAGE="JavaScript">
<!--
function process()
{
var Jalil = 0;
var Christopher = 0;
var April = 0;
var David = 0;
var Senna = 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") { person3++; }
if (value == "2") { person4++; }
if (value == "3") { person5++; }
if (value == "4") { person1++; }
if (value == "5") { person2++; }

for (i = 0; i < f.two.length; i++) if
(f.two[i].checked) value = f.two[i].value;
if (value == "1") { person4++; }
if (value == "2") { person1++; }
if (value == "3") { person3++; }
if (value == "4") { person5++; }
if (value == "5") { person2++; }

for (i = 0; i < f.three.length; i++) if
(f.three[i].checked) value = f.three[i].value;
if (value =="1") { person5++; }
if (value == "2") { person1++; }
if (value == "3") { person4++; }
if (value == "4") { person2++; }
if (value == "5") { person35++; }


for (i = 0; i < f.four.length; i++) if
(f.four[i].checked) value = f.four[i].value;
if (value =="1") { person2++; }
if (value == "2") { person1++; }
if (value == "3") { person3++; }
if (value == "4") { person4++; }
if (value == "5") { person5++; }

var out = "Jalil";
i = Jalil;
if (Christopher > i) { out = "Christopher"; i = Christopher; }
if (April > i) { out = "April"; i = April; }
if (David > i) { out = "David"; i = David; }
if (Senna > i) { out = "Senna"; i = Senna; }
location.href = out + ".html";
}
function err(msg, url, line)
{
location.href = "error.html";
}
//window.onerror = err;
// -->
</SCRIPT>


<title>Everworld quiz: Who are you? Jalil, Christopher, April, David or Senna?</title>



</head>

<body>

<form name="f">

<b>Would you rather...</B><br /><br />
<input type="radio" name="one" value="1">Be a star<br />
<input type="radio" name="one" value="2">Be very well known<br />
<input type="radio" name="one" value="3">Be a world ruler<br />
<input type="radio" name="one" value="4">Know or understand all things / be extremely smart<br />
<input type="radio" name="one" value="5">Be a normal, popular, or well liked person<br />
<p>


<b>Which do you think more relates to you?</B><br /><br />
<input type="radio" name="two" value="1">Being the hero<br />
<input type="radio" name="two" value="2">Doing well at things<br />
<input type="radio" name="two" value="3">Fitting in<br />
<input type="radio" name="two" value="4">Having power<br />
<input type="radio" name="two" value="5">Being funny<br />
<p>
<b>How would you rather die?</B><br /><br />
<input type="radio" name="three" value="1">I wouldn't; I would be immortal<br />
<input type="radio" name="three" value="2">In your sleep<br />
<input type="radio" name="three" value="3">Who cares?<br />
<input type="radio" name="three" value="4">In a car wreck<br />
<input type="radio" name="three" value="5">With lots of people around to mourn your death<br />
<p>
<b>What is your main flaw?</B><br /><br />
<input type="radio" name="four" value="1">Me? A flaw? Ha ha ha ha ha<br />
<input type="radio" name="four" value="2">You have an uncurable disease <b>or</b> you always need control<br />
<input type="radio" name="four" value="3">You have to suceed at everything<br />
<input type="radio" name="four" value="4">You are insecure as a person<br />
<input type="radio" name="four" value="5">You have an obsession with power<br />

<input type="button" value="Sumbit!" onclick="process();">

<p>Learn how to make your own at
<a href="http://www.``````````````" target="_blank">``````````````</a>

</body>
</html>

starlet
03-02-2003, 12:01 AM
First you need to finish editing the code...you need to replace all the places it says "person1" "person2" etc to be your options, then you need to create the pages to match (in your case Jalil.html Christopher.html April.html David.html Senna.html) and it will automatically go to whichever of those pages the person picks.