~HOME~CHAT~MESSAGES~GUESTBOOK~ ~HUMOR~BANNERS~WALLPAPER~GALLERY~ ~FICTION~VERSES~ARDA~INFORMATION~ |
QUIZ HTML CODE
HERE IS THE HTML FOR QUIZ 'WHICH WEAPON DO YOU CARRY?' YOU MAY USE IT TO CREATE YOUR OWN QUIZ THOUGH YOU WILL NEED TO KNOW ABOUT HTML THE WHITE WRITING IS NOT PART OF THE CODE BUT IT EXPLAINS WHAT TO PUT IN THAT SPACE I HAVE NOT WRITTEN IN EVERY SPACE BUT YOU SHOULD KNOW WHAT TO CHANGE IF IT IS SIMILAR TO WHAT WAS BEFORE <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>(title on top of the window)ANDURIL ~ Which Weapon Do You Carry?</title> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <style type="text/css"> BODY {overflow: scroll; overflow-x: hidden;} </style> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var (a word that represents a question)nature = "Not Set" var race = "Not Set" var abide = "Not Set" var defence = "Not Set" var enemy = "Not Set" var desire = "Not Set" function SetNature(x) { nature = x; } function SetRace(x) { race = x; } function SetAbide(x) { abide = x; } function SetDefence(x) { defence = x; } function SetEnemy(x) { enemy = x; } function SetDesire(x) { desire = x; } function Score() { var (a answer they could get at the end of the quiz, can be no more than one word)anduril = 0 var herugrim = 1 var witchkingsword = 2 var gandalfstaff = 3 var aiglos = 4 var stridersword = 5 var legolasbow = 6 var gimliaxe = 7 var hadhafang = 8 var sting = 9
var weaponCount = new Array; var weaponName = new Array; for (i=0;i<10;i++) { weaponCount[i] = 0; } weaponName[(your one-word quiz answer)anduril] = "(your answer that may have more than one word)ANDURIL�" weaponName[herugrim] = "HERUGRIM" weaponName[witchkingsword] = "THE WITCH KING'S SWORD" weaponName[gandalfstaff] = "GANDALF'S STAFF" weaponName[aiglos] = "AIGLOS" weaponName[stridersword] = "STRIDER'S SWORD" weaponName[legolasbow] = "LEGOLAS' BOW" weaponName[gimliaxe] = "GIMLI'S AXE" weaponName[hadhafang] = "HADHAFANG" weaponName[sting] = "STING" if ((word for first question)nature == "(first answer they could pick for that question)kind") { weaponCount[(what the answer would be if they chose that)herugrim]++; } else if (nature ==" merciless") { weaponCount[witchkingsword]++; } else if (nature == "vain") { weaponCount[gandalfstaff]++; } else if (nature == "ignorant") { weaponCount[aiglos]++; } else if (nature == "strong") { weaponCount[stridersword]++; } else if (nature == "swift") { weaponCount[legolasbow]++; } else if (nature == "powerful") { weaponCount[gimliaxe]++; } else if (nature == "valliant") { weaponCount[anduril]++; } else if (nature == "piercing") { weaponCount[hadhafang]++; } else if (nature == "brave") { weaponCount[sting]++; } else { alert("(what pops up if they haven't answered this question)WHAT IS YOUR NATURE?") } if ((word for second question)race == "(first answer they could pick for that question)elves") { weaponCount[(what the answer would be if they chose that)hadhafang]++; weaponCount[(maybe you have more than one answer for this particular question in the quiz, you put another answer here)legolasbow]++; weaponCount[aiglos]++; } else if (race == "men") { weaponCount[anduril]++; weaponCount[stridersword]++; weaponCount[herugrim]++; } else if (race == "wizards") { weaponCount[gandalfstaff]++; } else if (race == "dwarves") { weaponCount[gimliaxe]++; } else if (race == "nazgul") { weaponCount[witchkingsword]++; } else if (race == "hobbits") { weaponCount[sting]++; } else { alert("(what pops up if they haven't answered this question)WHAT RACE ARE YOU OF?") } if ((your word for third question)abide == "(first answer they could pick for that question)in the hills") { weaponCount[(what the answer would be if they chose that)stridersword]++; weaponCount[(what, maybe, another answer would be of they chose that)gandalfstaff]++; } else if (abide == "mordor") { weaponCount[witchkingsword]++; } else if (abide == "rivendell") { weaponCount[hadhafang]++; } else if (abide == "mirkwood") { weaponCount[legolasbow]++; weaponCount[aiglos]++; } else if (abide == "hobbiton") { weaponCount[sting]++; } else if (abide == "rohan") { weaponCount[herugrim]++; } else if (abide == "mines of moria") { weaponCount[gimliaxe]++; } else if (abide == "gondor") { weaponCount[anduril]++; } else { alert("(what pops up if they haven't answered this question)WHERE DO YOU ABIDE?") } if ((your word for fourth question)defence == "(first answer they could pick for that question)swing . . . thunk") { weaponCount[(what the answer would be if they chose that)gandalfstaff]++; weaponCount[gimliaxe]++; } else if (defence == "flight") { weaponCount[legolasbow]++; } else if (defence == "thrown") { weaponCount[aiglos]++; } else if (defence == "stabbing") { weaponCount[sting]++; } else if (defence == "swung to slice") { weaponCount[anduril]++; weaponCount[herugrim]++; weaponCount[witchkingsword]++; weaponCount[stridersword]++; weaponCount[hadhafang]++; } else { alert("(what pops up if they haven't answered this question)HOW DO YOU WIELD YOUR DEFENCE?") } if ((your word for fifth question)enemy == "(first answer they could pick for that question)filthy orcs") { weaponCount[(what the answer would be if they chose that)anduril]++; weaponCount[aiglos]++; weaponCount[legolasbow]++; } else if (enemy == "muscular uru-hai") { weaponCount[herugrim]++; weaponCount[stridersword]++; weaponCount[gimliaxe]++; } else if (enemy == "hobbit nuisances") { weaponCount[witchkingsword]++; } else if (enemy == "saruman the white") { weaponCount[gandalfstaff]++; } else if (enemy == "grasp of the ring") { weaponCount[sting]++; weaponCount[hadhafang]++; } else { alert("(what pops up if they haven't answered this question)WHO IS YOUR ENEMY?") } if ((your word for fifth question)desire == "(first answer they could pick for that question)beautiful black-haired elf") { weaponCount[(what the answer would be if they chose that)anduril]++; weaponCount[stridersword]++; weaponCount[aiglos]++; } else if (desire == "lord of the dunedain") { weaponCount[hadhafang]++; } else if (desire == "elf queen of lothlorien") { weaponCount[gimliaxe]++; weaponCount[legolasbow]++; weaponCount[sting]++; weaponCount[gandalfstaff]++; } else if (desire == "lost woman from the eastfold") { weaponCount[herugrim]++; weaponCount[witchkingsword]++; } else { alert("(what pops up if they haven't answered this question)WHICH IS THE ONE OF YOUR DESIRE?") } max = -1 count = 0 answer = "Not Set" for (i=0;i<10;i++) { if (weaponCount[i] > max) { max = weaponCount[i]; count = 1; answer = weaponName[i]; } else if (weaponCount[i] == max) { count++; } } if (count > 1) { switch ((if there is a tie between answers this is the question it decides the answer upon)nature) { case "(first answer they could pick for this question)kind": alert ("(their answer that pops up when they have completed the quiz if they have chosen this)YOU ARE FATED TO WIELD HERUGRIM"); break; case "merciless": alert ("YOU ARE FATED TO WIELD THE WITCH KING'S SWORD"); break; case "vain": alert ("YOU ARE FATED TO WIELD GANDALF'S STAFF"); break; case "ignorant": alert ("YOU ARE FATED TO WIELD AIGLOS"); break; case "strong": alert ("YOU ARE FATED TO WIELD STRIDER'S SWORD"); break; case "swift": alert ("YOU ARE FATED TO WIELD LEGOLAS' BOW"); break; case "powerful": alert ("YOU ARE FATED TO WIELD GIMLI'S AXE"); break; case "valliant": alert ("YOU ARE FATED TO WIELD ANDURIL"); break; case "piercing": alert ("YOU ARE FATED TO WIELD HADHAFANG"); break; case "brave": alert ("YOU ARE FATED TO WIELD STING"); break; } } else { alert("(if there is no tie then this is the answer sentence that is displayed followed by whichever answer they got (the text you wrote at the top �)) YOU ARE FATED TO WIELD " + answer); } } // End --> </script> <meta name="Microsoft Border" content="t, default"> </head> <body background="../images/background.jpg"> <DIV ALIGN="CENTER"> <FORM name="quiz"> <p><font face="Dauphin">(name of the quiz)WHICH WEAPON DO YOU CARRY?</font></p> <font face="Dauphin"><font size="2">(first question THIS IS WHAT THEY WILL SEE ON YOUR QUIZ!!!)WHAT IS YOUR NATURE?</font><br> <input type=radio name="(your word for first question)nature" value="(first answer for this question)kind" onclick="Set(word for question)Nature('(also first answer for this question)kind')"> (first answer for this question but THIS IS WHAT THEY WILL SEE)Kind<br> <input type=radio name="nature" value="merciless" onclick="SetNature('merciless')"> Merciless<br> <input type=radio name="nature" value="vain" onclick="SetNature('vain')"> Vain<br> <input type=radio name="nature" value="ignorant" onclick="SetNature('ignorant')"> Ignorant<br> <input type=radio name="nature" value="strong" onclick="SetNature('strong')"> Strong<br> <input type=radio name="nature" value="swift" onclick="SetNature('swift')"> Swift<br> <input type=radio name="nature" value="powerful" onclick="SetNature('powerful')"> Powerful<br> <input type=radio name="nature" value="valliant" onclick="SetNature('valliant')"> Valliant<br> <input type=radio name="nature" value="piercing" onclick="SetNature('piercing')"> Piercing<br> <input type=radio name="nature" value="brave" onclick="SetNature('brave')"> Brave<br> <p><font face="Dauphin" size="2">(second question)WHAT RACE ARE YOU OF?</font><font face="Dauphin"><br> <input type=radio name="(your word for second question)race" value="(first answer for this question)elves" onclick="Set(word for question)Race('(also first answer for this question)elves')"> (remember this is what they will see)Elves<br> <input type=radio name="race" value="men" onclick="SetRace('men')"> Men<br> <input type=radio name="race" value="wizards" onclick="SetRace('wizards')"> Wizards<br> <input type=radio name="race" value="dwarves" onclick="SetRace('dwarves')"> Dwarves<br> <input type=radio name="race" value="nazgul" onclick="SetRace('nazgul')"> Nazgul<br> <input type=radio name="race" value="hobbits" onclick="SetRace('hobbits')"> Hobbits<br> <p><font face="Dauphin" size="2">(third question)WHERE DO YOU ABIDE?</font><font face="Dauphin"><br> <input type=radio name="(your word for third question)abide" value="(first answer for this question)in the hills" onclick="Set(word for question)Abide('(also)in the hills')"> (answer they will see)In the Hills<br> <input type=radio name="abide" value="mordor" onclick="SetAbide('mordor')"> Mordor<br> <input type=radio name="abide" value="rivendell" onclick="SetAbide('rivendell')"> Rivendell<br> <input type=radio name="abide" value="mirkwood" onclick="SetAbide('mirkwood')"> Mirkwood<br> <input type=radio name="abide" value="hobbiton" onclick="SetAbide('hobbiton')"> Hobbiton<br> <input type=radio name="abide" value="rohan" onclick="SetAbide('rohan')"> Rohan<br> <input type=radio name="abide" value="mines of moria" onclick="SetAbide('mines of moria')"> Mines of Moria<br> <input type=radio name="abide" value="gondor" onclick="SetAbide('gondor')"> Gondor<br> <p><font face="Dauphin" size="2">(fourth question)HOW DO YOU WIELD YOUR DEFENCE?</font><br> <input type=radio name="(word for question)defence" value="(first answer for this question)swing . . . thunk" onclick="Set(word for question)Defence('(again answer)swing . . . thunk')"> (answer they will see)Swing . . . thunk<br> <input type=radio name="defence" value="flight" onclick="SetDefence('flight')"> Flight<br> <input type=radio name="defence" value="thrown" onclick="SetDefence('thrown')"> Thrown<br> <input type=radio name="defence" value="stabbing" onclick="SetDefence('stabbing')"> Stabbing<br> <input type=radio name="defence" value="swung to slice" onclick="SetDefence('swung to slice')"> Swung to slice<br> <p><font face="Dauphin" size="2">(fifth question)WHO IS YOUR ENEMY?</font><br> <input type=radio name="(word for question)enemy" value="(first answer for this qestion)filthy orcs" onclick="Set(word for question)Enemy('(again the answer)filthy orcs')"> (the first answer they will see)Filthy Orcs<br> <input type=radio name="enemy" value="muscular uru-hai" onclick="SetEnemy('muscular uru-hai')"> Muscular Uruk-Hai<br> <input type=radio name="enemy" value="hobbit nuisances" onclick="SetEnemy('hobbit nuisances')"> Hobbit Nuisances<br> <input type=radio name="enemy" value="saruman the white" onclick="SetEnemy('saruman the white')"> Saruman the White<br> <input type=radio name="enemy" value="grasp of the ring" onclick="SetEnemy('grasp of the ring')"> Grasp of the Ring<br> <p><font face="Dauphin" size="2">(sixth question)WHICH IS THE ONE OF YOUR DESIRE?</font><font face="Dauphin"><br> <input type=radio name="(your word for this quetion)desire" value="fist answer for this questio)beautiful black-haired elf" onclick="Set(word for that question Capitalized)Desire('(again the answer)beautiful black-haired elf')"> (frst answer they will see for this question)Beautiful Black-haired Elf<br> <input type=radio name="desire" value="lord of the dunedain" onclick="SetDesire('lord of the dunedain')"> Lord of the Dunedain<br> <input type=radio name="desire" value="elf queen of lothlorien" onclick="SetDesire('elf queen of lothlorien')"> Elf Queen of Lothloien<br> <input type=radio name="desire" value="lost woman from the eastfold" onclick="SetDesire('lost woman of the eastfold')"> Lost woman from the Eastfold</font><p> <CENTER> <font face="Dauphin" size="2"> <input type=button onClick="Score()" value="(what is on the button you click to receive your answer)WHICH FATE IS MINE?"> </font> </CENTER> </FORM> </DIV>
<p> </body> </html>
|