The Amazingly Odd Stories

Here's the script that makes the "Is this annoying?" box seen on the main page. Just copy it and put it into the HTML of your page. You do NOT have to give Bumderland credit for this if you do not want to.
The red signifies where you insert the proper information.

First, make the background color the same as the text color. Then put this in your page wherever you want a word to be inserted by the user:

<script language="JavaScript"><!--
var word = prompt("Question or statement.","Default answer (I recommend that you leave the quotes empty)")
document.write(word)
//-->
</script>

Now, put this at the end of your story:

<form>
<center>
<input type="button" name="B1"
value="View Your Story" onClick="document.bgColor='New Background Color'">
</center>
</form>

So, the story would be like this:

<br>Hi,
<script language="JavaScript"><!--
var word = prompt("Question or statement.","Default answer (I recommend that you leave the quotes empty)")
document.write(word)
//-->
</script>
. How are you? I'm
<script language="JavaScript"><!--
var word = prompt("Question or statement.","Default answer (I recommend that you leave the quotes empty)")
document.write(word)
//-->
</script>
.<p><form>
<center>
<input type="button" name="B1"
value="View Your Story" onClick="document.bgColor='white'">
</center>
</form>

Click here to see the script in action.

Back to JavaScript Page

Back to Main Page