bigtimecow
Feb 10th, 2006, 10:21 AM
<html>
<head>
<title>Adam Norton's Favorite Color Guessing Game</title>
</head>
<body>
<script language="Javascript">
<!--
var guessColor = prompt("What is Adam Norton's favorite color? (guess 1)","");
if (guessColor == "red")
{
alert("That is correctamundo! You are the master of guessing colors!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! My favorite color is hotter than that...");
var guessColor = prompt("What is Adam Norton's favorite color? (guess 2)","");
if (guessColor == "red")
{
alert("That is correctamundo! You are pretty good at guessing colors!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! My favorite color reminds people of anger...");
var guessColor = prompt("What is Adam Norton's favorite color? (guess 3 - the last!)","");
if (guessColor == "red")
{
alert("That is correctamundo! You aren't very good at guessing colors, but you got it!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! Sorry, that was your final try. The correct answer is red.");
}
}
}
document.write("<h2>If you would like to play again, please press F5.</h2>");
//-->
</script>
</body>
</html>
:(
<head>
<title>Adam Norton's Favorite Color Guessing Game</title>
</head>
<body>
<script language="Javascript">
<!--
var guessColor = prompt("What is Adam Norton's favorite color? (guess 1)","");
if (guessColor == "red")
{
alert("That is correctamundo! You are the master of guessing colors!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! My favorite color is hotter than that...");
var guessColor = prompt("What is Adam Norton's favorite color? (guess 2)","");
if (guessColor == "red")
{
alert("That is correctamundo! You are pretty good at guessing colors!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! My favorite color reminds people of anger...");
var guessColor = prompt("What is Adam Norton's favorite color? (guess 3 - the last!)","");
if (guessColor == "red")
{
alert("That is correctamundo! You aren't very good at guessing colors, but you got it!");
document.write("<h1><font color="red">YOU GUESSED CORRECTLY!</font></h1>");
}
else
{
alert("That is incorrect! Sorry, that was your final try. The correct answer is red.");
}
}
}
document.write("<h2>If you would like to play again, please press F5.</h2>");
//-->
</script>
</body>
</html>
:(