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 V2; By Delur
Topic Started: Jan 25 2010, 10:58 AM (148 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Delur
[CODE
 
Guessing Game V2]FOR A BETTER GUESSING GAME CODE LOOK AT NEBULAS POST TOWARDS THE BOTTOM.

Code Name: Guessing Game V2
Description: This is a different version of the guessing game.
Preview of it in Use: http://s10.invisionfree.com/The_Untainted_Shop/index.php?
Where it goes: Admin CP-->Board Wrappers-->Header--->Above Navigation
Quote:
 
<html>
<head>
<center><script type="text/javascript">
var pass = password
function disp_prompt()
{
var pass=prompt("Please enter a number between 1 - 100!","")
if (pass == 75)
{
document.write("Congratulations! You have figured out the secret number.")
}
if (pass <75)
{
document.write("Sorry but " +pass+ " is not the correct number. Please pick a higher number.")
}
if (pass >75)
{
document.write("Sorry but "+pass+" is not the correct number. Please pick a lower number.")
}
}
</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>

Copyright:Delur & Nebula

Blue are the numbers that you can change. The first set is the numbers they will pick from and the second one is the secret number.

Red number can change but MUST be the same as the second blue number.

Green is if you want to change the button.

I have already asked Nebula and he said I could post this!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply