We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE]Guessing Game; By nebula
Topic Started: Jan 25 2010, 10:56 AM (111 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: nebula
[CODE
 
Guessing Game]Code Name: Guessing Game
Description: See if you can guess the secret number.
Preview of it in Use: Preview?
Where it goes:It can go in Javascript, Header, or Footer. Just depends on where you want it.
Quote:
 
<html>
<head>
<center><script type="text/javascript">
var pass = password
function disp_prompt()
{
var pass=prompt("Please enter a number between 1 - 5!","")
if (pass == 2)
{
document.write("Congratulations! You have figured out the secret number.")
}
else
{
document.write("Sorry but " +pass+ " is not the correct password")
}
}
</script>
</head>

<body>
<form>
<body>
<form>
<a href="http://photobucket.com" target="_blank"><img src="http://i9.photobucket.com/albums/a91/dmconway/code.gif" border="0" alt="Image hosting by Photobucket" <input type="button" onclick="disp_prompt()"
</form>
</body
width="144" height="50" onclick="disp_prompt()" value="Take a Guess!">
</form>
</body>
</center>
</html>


The blue is the picture of your button.
The red is your secret number.
The bold green is the numbers people will pick from.
Copyright:none
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply