<html>
<head>
<script type=”text/javascript”>
function Upstairs() {
document.write (“<p>Upstairs there is a bunch of rooms you do not know where the key is</p>”)
answer=prompt (“which room should you go in “10” or “12”>?”)
if (answer==”10″) {
Ten()
}else{
Twelve()
}
}
function Downstairs() {
document.write (“<p>You are still downstairs but which room you should you go in?</p>”)
answer=prompt (“To the “kitchen” or to the “bathroom”?”)
if (answer==”kitchen”) {
Kitchen()
}else{
Bathroom()
}
}
</script>
</head>
<body bgcolor=”#000000″ text=”silver” >
<script type=”text/javascript”>
document.write (“<h2>The grand old story</h2><p>You are in a dark scary house, you can go upstairs where it is dark or downstairs which is still dark, but rememeber you need to find the key to the house to get out.</p>”)
answer=prompt (“Do you want to go “upstairs” or stay “downstairs”)
if (answer==”upstairs”) {
Upstairs()
}else{
Downstairs()
}
</script>
</body>
</html>
[upl-file uuid=4a071953-fe48-428c-bf0d-a607b73c3daf size=1kB]java.txt