0 Members and 1 Guest are viewing this topic.
<html><head><title>Magic 8 Ball</title><script type="text/JavaScript">function answer(){now = new Date();num = now.getSeconds() % 16;document.ans.src=("gr/pic" + num + ".png");}function check(){if (document.ask.question.value.length == 0){alert("Please enter a question!");document.ask.question.focus;}else{answer();}}</script><style type="text/css">body {background-image:url('8ball.png');background-repeat:no-repeat;background-position:left top;}.pies {font-family:Arial;font-size:22px;}div#ball{background-image:url('gr/ball.png');position:relative;width:600;height:600;z-index:1;}div#reply{margin-top: 210px;z-index:2;}#main{ background-image: url(gr/ball.png); background-repeat: no-repeat; height: 700px; width: 600px; background-color: #777777; border: medium solid #444444; padding: 15px; background-position: top;}</style></head><body bgcolor="#aaaaaa"><center><div id="main"><div id="reply"><img src="gr/nothing.png" name="ans"></div><br><form name="ask" style='margin-top: 260px'>What is your question?<br><input type="text" name="question" size="45"><br><input type="button" value="Shake!" onMouseDown="check()"></form><br></div></center></body></html>