
More JavaScript Games
Army Of Ants | Naval Battle | Play Blackjack | How Many Boxes | Curse Phrases | Dice Roller | Random Face | Guess A Number | Guess That Number | How Many Dots | Insight Generator | Eliminate boxes | Lottery Numbers | Love Compatibility | Math Problems | 3D JavaScript Maze | The Mind Reader | Three UFOs Chase | Pokemon Interactive | Space Invaders | Mr. Potato Head | Higher and Lower | Rock Paper Scissors | Play Same Game | In Alphabetical Order | A Spy Is Hidden | Text Animation | 3D Tic Tac Toe | Typing Speed Test
Description
Play the JavaScript version of Guess A Number. First, select a number range and then try to guess the number the computer has chosen....View A Script Demo
Play the JavaScript version of Guess A Number. First, select a number range and then try to guess the number the computer has chosen....View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var my_no,count;
function load() {
window.defaultStatus="JavaScript Guess-a-Number Game";
document.game.help.value="Please set range of numbers and press the Start button.";
document.game.from.focus(); }
function rnd(scale) {
var dd=new Date();
return((Math.round(Math.abs(Math.sin(dd.getTime()))*8.71*scale)%scale)); }
function range() {
var to=1+1*document.game.to.value;
count=0;
my_no=rnd(to);
while(my_no<document.game.from.value) {
my_no=rnd(to); }
document.game.help.value="Please guess a number, enter it, and press Guess."; }
function guess() {
var no=document.game.number.value;
count++;
if(no<my_no) document.game.help.value="My number is greater than "+no+".";
else if(no>my_no) document.game.help.value="My number is less than "+no+".";
else alert("It takes you "+count+" attempts to guess this number"); }
// End -->
</SCRIPT>
</HEAD>
<BODY Background=../graphics/grayback.jpg onLoad="load()">
<center><BR><BR><BR>
<FORM name=game>
<TABLE border=3>
<TR>
<TD align=center colspan=2>Range of numbers</TD>
<TD align=center rowspan=2><input type=button value=" Start " onclick="range()"></TD>
</TR>
<TR>
<TD align=center>From:<br><input type=text name=from size=10></TD>
<TD align=center>To:<br><input type=text name=to size=10></TD>
</TD>
<TR>
<TD></TD>
</TR>
<TR>
<TD align=center colspan=3><input type=text name=help size=70></TD>
</TR>
<TR>
<TD></TD>
</TR>
<tr><td align=right colspan=3><input type=text name=number size=10><input type=button value=" Guess " onclick="guess()"></TD>
</TR>
</TABLE>
</FORM>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var my_no,count;
function load() {
window.defaultStatus="JavaScript Guess-a-Number Game";
document.game.help.value="Please set range of numbers and press the Start button.";
document.game.from.focus(); }
function rnd(scale) {
var dd=new Date();
return((Math.round(Math.abs(Math.sin(dd.getTime()))*8.71*scale)%scale)); }
function range() {
var to=1+1*document.game.to.value;
count=0;
my_no=rnd(to);
while(my_no<document.game.from.value) {
my_no=rnd(to); }
document.game.help.value="Please guess a number, enter it, and press Guess."; }
function guess() {
var no=document.game.number.value;
count++;
if(no<my_no) document.game.help.value="My number is greater than "+no+".";
else if(no>my_no) document.game.help.value="My number is less than "+no+".";
else alert("It takes you "+count+" attempts to guess this number"); }
// End -->
</SCRIPT>
</HEAD>
<BODY Background=../graphics/grayback.jpg onLoad="load()">
<center><BR><BR><BR>
<FORM name=game>
<TABLE border=3>
<TR>
<TD align=center colspan=2>Range of numbers</TD>
<TD align=center rowspan=2><input type=button value=" Start " onclick="range()"></TD>
</TR>
<TR>
<TD align=center>From:<br><input type=text name=from size=10></TD>
<TD align=center>To:<br><input type=text name=to size=10></TD>
</TD>
<TR>
<TD></TD>
</TR>
<TR>
<TD align=center colspan=3><input type=text name=help size=70></TD>
</TR>
<TR>
<TD></TD>
</TR>
<tr><td align=right colspan=3><input type=text name=number size=10><input type=button value=" Guess " onclick="guess()"></TD>
</TR>
</TABLE>
</FORM>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

