קודים לג'אווה             מ יוסי   האתר של יוסי

 

הקוד הראשון הוא משמש להצגת הודעה ברגע שנכנסים לאתר ניתן לשנות אותו איפה שרשום בכחול

<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<BODY onLoad=
"alert('Enter The Message Here')"> w
<!-- END OF SCRIPT -->

 

 

הקוד השני הוא משמש להצגת הודעה ברגע שלחצים על טקסט (כאן יש שלושה מצבים)

 



<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
Don't point your mouse
<a href="" onmouseover="alert('Oh no! What have you done?!')">here</a> or <a href="" onmouseover="alert('I thought I said NO!')">here</a> or <a href="" onmouseover="alert('If your mom told you not to do something, would you still do it??')">here</a>.
<!-- END OF SCRIPT -->

 

הקוד השלישי הוא audio affects משמש לשמיעת מוזיקה (ניתן לעשות כמה שירים שרוצים)

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Cd Midi Player</TITLE>
</HEAD>
<Script Language="JavaScript">
<!-- Hiding
/*  Script by Lefteris Haritou :
    http://www.geocities.com/~lef
    Please keep the above credit.
    No copyrights but be fair.
*/

song
= new Array()
var x = 0

song
[1] = "Songname # 1"
song
[2] = "Songname # 2"
song
[3] = "Songname # 3"
song
[4] = "Songname # 4"
song
[5] = "Songname # 5"
song
[6] = "Songname # 6"

function prev(){
if (x>1)
{ x--
document
.midi.typein.value=song [x]
}
}

function next(){
var max= song.length-1
if (x<max)
{ x++
document
.midi.typein.value=song [x]
}
}

function go(){
if (x != 0){
location
.href='song'+x+'.mid'
}
}

function start(){
x
=1
document
.midi.typein.value=song [x]
}

function end(){
x
=song.length-1
document
.midi.typein.value=song [x]
}

function cls(){
document
.midi.typein.value="Select Midi Song"
}
// Done Hiding -->
</Script>
<BODY Bgcolor=
"#ffffff" onload="cls()">
<Center>
<FORM Name=
"midi">
<INPUT NAME=
"typein" TYPE="text" SIZE="25" ALIGN=top><BR><!-- You can change the size of the textbox if you need-->
<font size=
3 face="Comic Sans Ms">
<INPUT TYPE=Button Value=
"|<<" Align=left onclick="start()">
<INPUT TYPE=Button Value=
"<<" Align=left onclick="prev()">
<INPUT TYPE=Button Value=
"PLAY" Align=left onclick="go()">
<INPUT TYPE=Button Value=
">>" Align=left onclick="next()">
<INPUT TYPE=Button Value=
">>|" Align=left onclick="end()">
</FORM></font>
</Center>
</BODY>
</HTML>
<!-- END OF SCRIPT -->

 

 

הקוד הרביעי- Background EFFECTS  

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->  
<!-- Paste this code into HEAD of your document  -->
 
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function blinkit(){
intrvl
=0;
for(nTimes=0;nTimes<3;nTimes++){
intrvl
+= 200;
setTimeout
("document.bgColor='#0000FF';",intrvl);
intrvl
+= 200;
setTimeout
("document.bgColor='#FFFFFF';",intrvl);
  
}
}
// End -->
</SCRIPT>

<!-- Add this form to the body of the HTML document  -->

<BODY>
<CENTER>
<FORM>
<INPUT TYPE=
"BUTTON" VALUE="Blink" onClick="blinkit()">
</FORM>
<!-- END OF SCRIPT -->

 

הקוד החמישי- Background EFFECTS  

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function changeBackground(hexNumber) {
document
.bgColor=hexNumber
}
prefix
="#"
rnum1
=0
bnum1
=0
gnum1
=0
rnum2
=0
bnum2
=0
gnum2
=0
hexNumber2
="#000000";
rcount
=0;
bcount
=0;
gcount
=0;
function num2hex(num) {
if (num==15) return "f";
else if (num==14) return "e";
else if (num==13) return "d";
else if (num==12) return "c";
else if (num==11) return "b";
else if (num==10) return "a";
else if (num==9) return "9";
else if (num==8) return "8";
else if (num==7) return "7";
else if (num==6) return "6";
else if (num==5) return "5";
else if (num==4) return "4";
else if (num==3) return "3";
else if (num==2) return "2";
else if (num==1) return "1";
else return "0";
}
function changeBackground2(number) {
if(number == 1) {
rnum1
=rcount%16;
if (rcount <15) {
rcount
=rcount+1;
 
}
}
if(number == 2) {
gnum1
=gcount%16;
if (gcount <15) {
gcount
=gcount+1;
 
}
}
if(number == 3) {
bnum1
=bcount%16;
if (bcount <15) {
bcount
=bcount+1;
 
}
}
if(number == 4) {
rnum1
=rcount%16;
if (rcount > 0) {
rcount
=rcount-1;
 
}
}
if(number == 5) {
gnum1
=gcount%16;
if (gcount > 0) {
gcount
=gcount-1;
 
}
}
if(number == 6) {
bnum1
=bcount%16;
if (bcount > 0) {
bcount
=bcount-1;
 
}
 
}
hexNumber2
= prefix+num2hex(rnum1)+num2hex(rnum2)+num2hex(gnum1)+num2hex(gnum2)+num2hex(bnum1)+num2hex(bnum2);
  document
.bgColor=hexNumber2
}
// End -->
</SCRIPT>

<!-- Add this code to the BODY of your HTML document  -->

<BODY>

<CENTER>
<FORM METHOD=
"POST" NAME="background">
<TABLE WIDTH=350 BORDER="3" CELLPADDING="3">
<TR>
<TD Align=center><INPUT TYPE="button" VALUE="Red" ONCLICK="changeBackground('#FF0000')"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="Green" ONCLICK="changeBackground('#00FF00')"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="Blue" ONCLICK="changeBackground('#0000FF')"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="White" ONCLICK="changeBackground('#FFFFFF')"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="Black" ONCLICK="changeBackground('#000000')"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="Grey" ONCLICK="changeBackground('#C0C0C0')"></TD>
</TR>
</TABLE>
<TABLE WIDTH=350 BORDER="3" CELLPADDING="3">
<TR><TD><center>Variable Background Color Changer</center></TD>
</TR>
</TABLE>
<TABLE WIDTH=350 BORDER="3" CELLPADDING="3">
<TR>
<TD Align=center><INPUT TYPE="button" VALUE="+ Red" ONCLICK="changeBackground2(1)"><P>
<INPUT TYPE=
"button" VALUE="- Red" ONCLICK="changeBackground2(4)"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="+ Green" ONCLICK="changeBackground2(2)"><P>
<INPUT TYPE=
"button" VALUE="- Green" ONCLICK="changeBackground2(5)"></TD>
<TD Align=center><INPUT TYPE="button" VALUE="+ Blue" ONCLICK="changeBackground2(3)"><P>
<INPUT TYPE=
"button" VALUE="- Blue" ONCLICK="changeBackground2(6)"></TD>
</TR>
</TABLE>
<TABLE WIDTH=350 BORDER="3" CELLPADDING="3">
<TR>
<TD><center>Keep pressing buttons to change color<BR>
(The color will start as black)</center>
</TD>
</TR>
</TABLE>
</FORM>
</CENTER>
<!-- END OF SCRIPT -->

 

הקוד השישי- Background EFFECTS  

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<!-- Paste this code into HEAD of your document  -->
 
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Script by Michael Tartaglia (stonedstan@hotmail.com) -->

<!--
color
=new Array("0","8","F");
speed
=250;
document
.bgColor="FFFFFF";
bg
=new Array("FFFFFF","FFFFFF","FFFFFF");
function begin() {
document
.form.col1.value=" X "; document.form.col2.value=" X ";
document
.form.col3.value=" X "; i=0; roll(speed);
}
function roll(speedB) {
if (document.form.col1.value==" X ") {
document
.form.c1.value=document.form.b1.value;
document
.form.b1.value=document.form.a1.value;
document
.form.a1.value=
color
[Math.round(Math.random()*10)%3]+
color
[Math.round(Math.random()*10)%3];
}
if (document.form.col2.value==" X ") {
document
.form.c2.value=document.form.b2.value;
document
.form.b2.value=document.form.a2.value;
document
.form.a2.value=
color
[Math.round(Math.random()*10)%3]+
color
[Math.round(Math.random()*10)%3];
}
if (document.form.col3.value==" X ") {
document
.form.c3.value=document.form.b3.value;
document
.form.b3.value=document.form.a3.value;
document
.form.a3.value=
color
[Math.round(Math.random()*10)%3]+
color
[Math.round(Math.random()*10)%3];
}
setTimeout
("roll("+speedB+")",speedB);
}
function stop(col) {
if (col==1) {document.form.col1.value="   ";i++;}
if (col==2) {document.form.col2.value="   ";i++;}
if (col==3) {document.form.col3.value="   ";i++;}
if (i==3) {
bg
[0]=document.form.a1.value+
document
.form.a2.value+
document
.form.a3.value;
bg
[1]=document.form.b1.value+
document
.form.b2.value+
document
.form.b3.value;
bg
[2]=document.form.c1.value+
document
.form.c2.value+
document
.form.c3.value;
speedB
=500000;roll(speedB);
  
}
}
function view(letter) {
document
.bgColor=bg[letter];
document
.form.color.value="#"+bg[letter];
}
// -->
</script>
</head>

<!-- Add this form to the body of the HTML document  -->

<center>
<form name=
"form">
<table cellpadding=2>
<tr><td align=center>
<input type=text name=
"a1" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"a2" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"a3" size=2 onFocus="this.blur()" value=" ">
<input type=button onClick=
"view(0)" value="View"><br>
<input type=text name=
"b1" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"b2" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"b3" size=2 onFocus="this.blur()" value=" ">
<input type=button onClick=
"view(1)" value="View"><br>
<input type=text name=
"c1" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"c2" size=2 onFocus="this.blur()" value=" ">
<input type=text name=
"c3" size=2 onFocus="this.blur()" value=" ">
<input type=button onClick=
"view(2)" value="View"><br>
<input type=button onClick=
"stop(1)" value=" X " name="col1">
<input type=button onClick=
"stop(2)" value=" X " name="col2">
<input type=button onClick=
"stop(3)" value=" X " name="col3">
        
</td>
<td valign=middle align=center>
<input type=button onClick=
"begin()" value="Spin!"><p>
<table bgcolor=FFFFFF border=1 cellspacing=0>
<tr><td align=center valign=middle>"X" stops each wheel.<p>
BG Color = <input type=text size=
7 value="#FFFFFF" name=color>
</td></tr>
</table>
</td></tr>
</table>
</form>
</center>
<!-- END OF SCRIPT -->

 

הקוד השביעי- Background EFFECTS   אתם בוחרים רקע ע"י כך שאתם רושמים את הצבע

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->        
<!-- Paste this script into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Script by: Eric Stremming <estremming@hotmail.com>   -->

<!-- Begin
function test(form) {
if (form.text.value == "")
alert
("What\'s your favorite color?")
else {
document
.bgColor=(""+form.text.value+"");
  
}
}
// End -->
</SCRIPT>

<!-- Add this code to the BODY of your HTML document  -->

<BODY>

<CENTER>
<FORM>
<B>Please enter your favorite<BR>
color and then click the button.<BR>
<input type=
"text" name="text">
<input type=
"button" name="button" value="click for color!" onClick="test(this.form)">
</FORM>
</CENTER>
<!-- END OF SCRIPT -->

 

 

הקוד השמיני- מחשבונים!!!

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>5 Function Calculator</TITLE>

<SCRIPT LANGUAGE="JavaScript">

<!-- Script by: Rick Johnson -->
<!-- Web Site:  http://members.tripod.com/~RickJohnson -->



<!-- Begin
function a_plus_b(form) {
a
=eval(form.a.value)
b
=eval(form.b.value)
c
=a+b
form
.ans.value = c
}
function a_minus_b(form) {
a
=eval(form.a.value)
b
=eval(form.b.value)
c
=a-b
form
.ans.value=c
}
function a_times_b(form) {
a
=eval(form.a.value)
b
=eval(form.b.value)
c
=a*b
form
.ans.value=c
}
function a_div_b(form) {
a
=eval(form.a.value)
b
=eval(form.b.value)
c
=a/b
form
.ans.value = c
}
function a_pow_b(form) {
a
=eval(form.a.value)
b
=eval(form.b.value)
c
=Math.pow(a, b)
form
.ans.value = c
}
// End -->
</SCRIPT>

<!-- Put this code into the BODY of your HTML document  -->

<BODY>
<CENTER>
<FORM name=
"formx"><input type=text size=4 value=12 name="a">
<input type=
"button" value="  +  " onClick="a_plus_b(this.form)">  
<input type=
"button" value="  -  " onClick="a_minus_b(this.form)">  
<input type=
"button" value="  x  " onClick="a_times_b(this.form)">  
<input type=
"button" value="  /  " onClick="a_div_b(this.form)">  
<input type=
"button" value="  ^  " onClick="a_pow_b(this.form)">  
<input type=
"number" size=4 value=3 name="b"> = <input type "number" value=0 name="ans" size=9>
</FORM>
</CENTER>
<!-- END OF SCRIPT -->

 

הקוד התשיעי- מחשבונים!!! יותר משכולל

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Advanced Calculator</TITLE>

<BODY>
<CENTER>
<FORM name=
"Keypad" action="">

<!--  Script by:  http://www.dummyproof.com/javascripts -->



<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<TR>
<TD colspan=3 align=middle>
<input name=
"ReadOut" type="Text" size=24 value="0" width=100%>
</TD>
<TD
</TD>
<TD>
<input name=
"btnClear" type="Button" value="  C  " onclick="Clear()">
</TD>
<TD><input name="btnClearEntry" type="Button" value="  CE " onclick="ClearEntry()">
</TD>
</TR>
<TR>
<TD>
<input name=
"btnSeven" type="Button" value="  7  " onclick="NumPressed(7)">
</TD>
<TD>
<input name=
"btnEight" type="Button" value="  8  " onclick="NumPressed(8)">
</TD>
<TD>
<input name=
"btnNine" type="Button" value="  9  " onclick="NumPressed(9)">
</TD>
<TD>
</TD>
<TD>
<input name=
"btnNeg" type="Button" value=" +/- " onclick="Neg()">
</TD>
<TD>
<input name=
"btnPercent" type="Button" value="  % " onclick="Percent()">
</TD>
</TR>
<TR>
<TD>
<input name=
"btnFour" type="Button" value="  4  " onclick="NumPressed(4)">
</TD>
<TD>
<input name=
"btnFive" type="Button" value="  5  " onclick="NumPressed(5)">
</TD>
<TD>
<input name=
"btnSix" type="Button" value="  6  " onclick="NumPressed(6)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnPlus" type="Button" value="  +  " onclick="Operation('+')">
</TD>
<TD align=middle><input name="btnMinus" type="Button" value="   -   " onclick="Operation('-')">
</TD>
</TR>
<TR>
<TD>
<input name=
"btnOne" type="Button" value="  1  " onclick="NumPressed(1)">
</TD>
<TD>
<input name=
"btnTwo" type="Button" value="  2  " onclick="NumPressed(2)">
</TD>
<TD>
<input name=
"btnThree" type="Button" value="  3  " onclick="NumPressed(3)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnMultiply" type="Button" value="  *  " onclick="Operation('*')">
</TD>
<TD align=middle><input name="btnDivide" type="Button" value="   /   " onclick="Operation('/')">
</TD>
</TR>
<TR>
<TD>
<input name=
"btnZero" type="Button" value="  0  " onclick="NumPressed(0)">
</TD>
<TD>
<input name=
"btnDecimal" type="Button" value="   .  " onclick="Decimal()">
</TD>
<TD colspan=3>
</TD>
<TD>
<input name=
"btnEquals" type="Button" value="  =  " onclick="Operation('=')">
</TD>
</TR>
</TABLE>
</TABLE>
</B>
</FORM>
</CENTER>
<font face=
"Verdana, Arial, Helvetica" size=2>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var FKeyPad = document.Keypad;
var Accum = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad
.ReadOut.value  = Num;
FlagNewNum
= false;
  
}
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad
.ReadOut.value = Num;
else
FKeyPad
.ReadOut.value += Num;
  
}
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum
= true;
if ( '+' == PendingOp )
Accum
+= parseFloat(Readout);
else if ( '-' == PendingOp )
Accum
-= parseFloat(Readout);
else if ( '/' == PendingOp )
Accum
/= parseFloat(Readout);
else if ( '*' == PendingOp )
Accum
*= parseFloat(Readout);
else
Accum
= parseFloat(Readout);
FKeyPad
.ReadOut.value = Accum;
PendingOp
= Op;
  
}
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut
= "0.";
FlagNewNum
= false;
  
}
else
{
if (curReadOut.indexOf(".") == -1)
curReadOut
+= ".";
  
}
FKeyPad
.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad
.ReadOut.value = "0";
FlagNewNum
= true;
}
function Clear () {
Accum
= 0;
PendingOp
= "";
ClearEntry
();
}
function Neg () {
FKeyPad
.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad
.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum);
}
// End -->
</SCRIPT>
<!-- END OF SCRIPT -->

 

הקוד העשירי- מחשבונים (אתם מכניסים את גילכם והוא אומר לכם גמה זה בשנת כלבים)

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Dog Years Calculator</TITLE>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
function fido (form) {
form
.dogyears.value = form.humanyears.value/7;
}
// End -->
</SCRIPT>

<!-- Copy this code into the BODY of your HTML document  -->

<BODY>

<CENTER>
<FORM>
Enter your age:
<INPUT TYPE =
"text" NAME="humanyears" SIZE=15 >
<BR><P>
<INPUT TYPE =
"button" VALUE="Calculate" ONCLICK="fido(this.form)">
<BR><P>
Your age in Dog Years is:
<INPUT TYPE=
"text" NAME="dogyears" SIZE=15 >
<BR>
</FORM>
</CENTER>
<!-- END OF SCRIPT -->

 

הקוד האחד עשר- לוח חודשי אם כותבים את החודש ואת השנה והוא מראה לכם את לוח החודש

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<SCRIPT LANGUAGE="JavaScript">





<!--



function displayCalendar(init) {      

  
var i;

  
var now = new Date();

       
var nowYear = now.getYear() - 95;

  
var nowMonth = now.getMonth();

  
var nowDay   = now.getDate();



   // on open of document

  
if (init==1)  {

        document
.calControl.month.selectedIndex = nowMonth;

        document
.calControl.year.selectedIndex = nowYear;

  
}

       
var month=document.calControl.month.selectedIndex

       
var year=document.calControl.year.selectedIndex+1995



       
var days=getDaysInMonth(month+1,year);



       
var firstOfMonth = new Date (year, month, 1);



       
var startingPos=firstOfMonth.getDay()+7;



        days
+=startingPos;



   // label days of week

   i
=0;

        document
.calButtons.elements[i++].value = " S ";

   document
.calButtons.elements[i++].value = " M ";

   document
.calButtons.elements[i++].value = " T ";

   document
.calButtons.elements[i++].value = " W ";

   document
.calButtons.elements[i++].value = " T ";

   document
.calButtons.elements[i++].value = " F ";

   document
.calButtons.elements[i++].value = " S ";



   // blank out non date buttons

  
for (i=7; i<startingPos; i++)

         document
.calButtons.elements[i].value = "   ";



       
for (i=startingPos; i<days; i++) 

                document
.calButtons.elements[i].value = i-startingPos+1;



   // show focus on today if the calendar is the proper month and year

  
if (month==nowMonth && year==nowYear+1995) 

      document
.calButtons.elements[nowDay+startingPos-1].focus();



 

   // blank out rest of non date buttons

       
for (i=days; i<49; i++) 

      document
.calButtons.elements[i].value = "   ";

}



function leapYear (Year) {

       
if (((Year % 4)==0) && ((Year % 100)!=0) || ((Year % 400)==0))

               
return (1);

       
else

               
return (0);

}



function getDaysInMonth(month,year)  {

  
var days;

  
if (month==1 || month==3 || month==5 || month==7 || month==8 ||

      month
==10 || month==12)  days=31;

  
else if (month==4 || month==6 || month==9 || month==11) days=30;

  
else if (month==2)  {

     
if (leapYear (year)==1)  days=29;

     
else days=28;

  
}

       
return (days);

}

// -->



</SCRIPT>

</HEAD>

<BODY ONLOAD=
"displayCalendar(1)">

<CENTER>

<FORM NAME=
"calControl">month&nbsp;<SELECT NAME="month"><OPTION>Jan&nbsp;<OPTION>Feb&nbsp;<OPTION>Mar&nbsp;<OPTION>Apr&nbsp;<OPTION>May&nbsp;<OPTION>Jun&nbsp;<OPTION>Jul&nbsp;<OPTION>Aug&nbsp;<OPTION>Sep&nbsp;<OPTION>Oct&nbsp;<OPTION>Nov&nbsp;<OPTION>Dec&nbsp;</SELECT>

year
&nbsp;<SELECT NAME="year"><OPTION>1995&nbsp;<OPTION>1996&nbsp;<OPTION>1997&nbsp;<OPTION>1998&nbsp;<OPTION>1999&nbsp;<OPTION>2000&nbsp;<OPTION>2001&nbsp;<OPTION>2002&nbsp;<OPTION>2003&nbsp;<OPTION>2004&nbsp;<OPTION>2005&nbsp;<OPTION>2006&nbsp</SELECT><INPUT TYPE="button" NAME="button1" VALUE="Create"

   onClick="displayCalendar(0)"></FORM><FORM NAME=
"calButtons"><INPUT TYPE="button" NAME="but0"  value="     "><INPUT TYPE="button" NAME="but1"  value="     "><INPUT TYPE="button" NAME="but2"  value="     "><INPUT TYPE="button" NAME="but3"  value="     "><INPUT TYPE="button" NAME="but4"  value="     "><INPUT TYPE="button" NAME="but5"  value="     "><INPUT TYPE="button" NAME="but6"  value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but7"  value="     "><INPUT TYPE="button" NAME="but8"  value="     "><INPUT TYPE="button" NAME="but9"  value="     "><INPUT TYPE="button" NAME="but10" value="     "><INPUT TYPE="button" NAME="but11" value="     "><INPUT TYPE="button" NAME="but12" value="     "><INPUT TYPE="button" NAME="but13" value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but14" value="     "><INPUT TYPE="button" NAME="but15" value="     "><INPUT TYPE="button" NAME="but16" value="     "><INPUT TYPE="button" NAME="but17" value="     "><INPUT TYPE="button" NAME="but18" value="     "><INPUT TYPE="button" NAME="but19" value="     "><INPUT TYPE="button" NAME="but20" value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but21" value="     "><INPUT TYPE="button" NAME="but22" value="     "><INPUT TYPE="button" NAME="but23" value="     "><INPUT TYPE="button" NAME="but24" value="     "><INPUT TYPE="button" NAME="but25" value="     "><INPUT TYPE="button" NAME="but26" value="     "><INPUT TYPE="button" NAME="but27" value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but28" value="     "><INPUT TYPE="button" NAME="but29" value="     "><INPUT TYPE="button" NAME="but30" value="     "><INPUT TYPE="button" NAME="but31" value="     "><INPUT TYPE="button" NAME="but32" value="     "><INPUT TYPE="button" NAME="but33" value="     "><INPUT TYPE="button" NAME="but34" value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but35" value="     "><INPUT TYPE="button" NAME="but36" value="     "><INPUT TYPE="button" NAME="but37" value="     "><INPUT TYPE="button" NAME="but38" value="     "><INPUT TYPE="button" NAME="but39" value="     "><INPUT TYPE="button" NAME="but40" value="     "><INPUT TYPE="button" NAME="but41" value="     "></CENTER>



<CENTER><INPUT TYPE=
"button" NAME="but42" value="     "><INPUT TYPE="button" NAME="but43" value="     "><INPUT TYPE="button" NAME="but44" value="     "><INPUT TYPE="button" NAME="but45" value="     "><INPUT TYPE="button" NAME="but46" value="     "><INPUT TYPE="button" NAME="but47" value="     "><INPUT TYPE="button" NAME="but48" value="     "></CENTER>



<CENTER></FORM></CENTER>
<!-- END OF SCRIPT -->

 

 

הקוד השנים עשר- לוח חודשי + שעון

 

RD>
<!TITLE>Calendar with date and time<!/TITLE>
<!DESCRIPTION>Displays a calendar with the date highlighted and the time displayed.<!/DESCRIPTION>
<!CATEGORY>Calendar<!/CATEGORY>

<!--
Instant Scripts © Copyright 1999 Evrsoft. All rights reserved.
For legal/author information please visit http://www.evrsoft/iscripts/legal.html

Category
Calendar Scripts

Description
Displays a calendar with the date highlighted and the time displayed.

-->

<!-- START OF SCRIPT -->

<!-- JavaScript immediate script -->

 
<SCRIPT LANGUAGE="JavaScript">

 <!--



 // Copyright 1996 - Tomer and Yehuda Shiran

 // This example will appear in our forthcoming book on JavaScript.

 // Feel free to "steal" this code provided that you leave this notice as is.

 // Additional examples from the book can be found at http://www.geocities.com/SiliconValley/9000/

 // For more information contact Tomer or Yehuda Shiran <yshiran@iil.intel.com>



 setCal
()



 
function getTime() {



         // initialize time-related variables with current time settings

        
var now = new Date()

        
var hour = now.getHours()

        
var minute = now.getMinutes()

         now
= null

        
var ampm = ""



         // validate hour values and set value of ampm

        
if (hour >= 12) {

                 hour
-= 12

                 ampm
= "PM"

        
} else

                 ampm
= "AM"

         hour
= (hour == 0) ? 12 : hour



         // add zero digit to a one digit minute

        
if (minute < 10)

                 minute
= "0" + minute // do not parse this number!



         // return time string

        
return hour + ":" + minute + " " + ampm

 
}



 
function leapYear(year) {

        
if (year % 4 == 0) // basic rule

                
return true // is leap year

         /* else */ // else not needed when statement is "return"

                
return false // is not leap year

 
}



 
function getDays(month, year) {

         // create array to hold number of days in each month

        
var ar = new Array(12)

         ar
[0] = 31 // January

         ar
[1] = (leapYear(year)) ? 29 : 28 // February

         ar
[2] = 31 // March

         ar
[3] = 30 // April

         ar
[4] = 31 // May

         ar
[5] = 30 // June

         ar
[6] = 31 // July

         ar
[7] = 31 // August

         ar
[8] = 30 // September

         ar
[9] = 31 // October

         ar
[10] = 30 // November

         ar
[11] = 31 // December



         // return number of days in the specified month (parameter)

        
return ar[month]

 
}



 
function getMonthName(month) {

         // create array to hold name of each month

        
var ar = new Array(12)

         ar
[0] = "January"

         ar
[1] = "February"



         ar
[2] = "March"

         ar
[3] = "April"



         ar
[4] = "May"

         ar
[5] = "June"

         ar
[6] = "July"

         ar
[7] = "August"

         ar
[8] = "September"

         ar
[9] = "October"

         ar
[10] = "November"

         ar
[11] = "December"



         // return name of specified month (parameter)

        
return ar[month]

 
}



 
function setCal() {

         // standard time attributes

        
var now = new Date()

        
var year = now.getYear()

        
var month = now.getMonth()

        
var monthName = getMonthName(month)

        
var date = now.getDate()

         now
= null



         // create instance of first day of month, and extract the day on which it occurs

        
var firstDayInstance = new Date(year, month, 1)

        
var firstDay = firstDayInstance.getDay()

         firstDayInstance
= null



         // number of days in current month

        
var days = getDays(month, year)



         // call function to draw calendar

         drawCal
(firstDay + 1, days, date, monthName, 1900 + year)

 
}



 
function drawCal(firstDay, lastDate, date, monthName, year) {

         // constant table settings

        
var headerHeight = 50 // height of the table's header cell

        
var border = 2 // 3D height of table's border

        
var cellspacing = 4 // width of table's border

        
var headerColor = "midnightblue" // color of table's header

        
var headerSize = "+3" // size of tables header font

        
var colWidth = 60 // width of columns in table

        
var dayCellHeight = 25 // height of cells containing days of the week

        
var dayColor = "darkblue" // color of font representing week days

        
var cellHeight = 40 // height of cells representing dates in the calendar

        
var todayColor = "red" // color specifying today's date in the calendar



        
var timeColor = "purple" // color of font representing current time



         // create basic table structure

        
var text = "" // initialize accumulative variable to empty string

         text
+= '<CENTER>'

         text
+= '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + '>' // table settings

         text
+=         '<TH COLSPAN=7 HEIGHT=' + headerHeight + '>' // create table header cell

         text
+=                 '<FONT COLOR="' + headerColor + '" SIZE=' + headerSize + '>' // set font for table header

         text
+=                         monthName + ' ' + year

         text
+=                 '</FONT>' // close table header's font settings

         text
+=         '</TH>' // close header cell



         // variables to hold constant settings

        
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>'

         openCol
+= '<FONT COLOR="' + dayColor + '">'

        
var closeCol = '</FONT></TD>'



         // create array of abbreviated day names

        
var weekDay = new Array(7)

         weekDay
[0] = "Sun"



         weekDay
[1] = "Mon"

         weekDay
[2] = "Tues"

         weekDay
[3] = "Wed"

         weekDay
[4] = "Thu"

         weekDay
[5] = "Fri"

         weekDay
[6] = "Sat"

        

         // create first row of table to set column width and specify week day

         text
+= '<TR ALIGN="center" VALIGN="center">'

        
for (var dayNum = 0; dayNum < 7; ++dayNum) {

                 text
+= openCol + weekDay[dayNum] + closeCol

        
}

         text
+= '</TR>'

        

         // declaration and initialization of two variables to help with tables

        
var digit = 1

        
var curCell = 1

        

        
for (var row = 1; row <= Math.ceil((lastDate + firstDay - 1) / 7); ++row) {

                 text
+= '<TR ALIGN="right" VALIGN="top">'

                
for (var col = 1; col <= 7; ++col) {

                        
if (digit > lastDate)

                                
break

                         
if (curCell < firstDay) {

                                 text
+= '<TD></TD>';

                                 curCell
++

                        
} else {

                                
if (digit == date) { // current cell represent today's date

                                         text
+= '<TD HEIGHT=' + cellHeight + '>'

                                         text
+= '<FONT COLOR="' + todayColor + '">'

                                         text
+= digit

                                         text
+= '</FONT><BR>'

                                         text
+= '<FONT COLOR="' + timeColor + '" SIZE=2>'

                                         text
+= '<CENTER>' + getTime() + '</CENTER>'



                                         text
+= '</FONT>'

                                         text
+= '</TD>'

                                
} else

                                         text
+= '<TD HEIGHT=' + cellHeight + '>' + digit + '</TD>'

                                 digit
++

                        
}

                
}

                 text
+= '</TR>'

        
}

        

         // close all basic table tags

         text
+= '</TABLE>'

         text
+= '</CENTER>'



         // print accumulative HTML string

         document
.write(text)

 
}



 // -->

 </SCRIPT>
<!-- END OF SCRIPT -->

 

הקוד השלושה עשר- שעון ניתן לבחור בין 12-24 שעות

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<TITLE>24/12 Hour Switch Clock</TITLE>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
function showMilitaryTime() {
if (document.form.showMilitary[0].checked) {
return true;
}
return false;
}
function showTheHours(theHour) {
if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
return (theHour);
}
if (theHour == 0) {
return (12);
}
return (theHour-12);
}
function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}
function showAmPm() {
if (showMilitaryTime()) {
return ("");
}
if (now.getHours() < 12) {
return (" am");
}
return (" pm");
}
function showTheTime() {
now
= new Date
document
.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm()
setTimeout
("showTheTime()",1000)
}
// End -->
</script>

<BODY onLoad=
"showTheTime()">

<!-- Add the last code in the BODY of your HTML document  -->

<BODY>

<center><form name=form>
<input type=text name=showTime size=
11><p>
<input type=radio name=showMilitary checked>Military Time<br>
<input type=radio name=showMilitary>12 Hour Time<br>
</form></center>
<!-- END OF SCRIPT -->

הקוד ה-14: שעון+תאריך מלא לדוגמא 11:38 AM | Saturday, April 1, 2000

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<TITLE>Current Date/Time 2</TITLE>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate
= new Date();
myday
= mydate.getDay();
mymonth
= mydate.getMonth();
myweekday
= mydate.getDate();
weekday
= myweekday;
myyear
= mydate.getYear();
year
= myyear;
myhours
= mydate.getHours();
ampmhour 
=  (myhours > 12) ? myhours - 12 : myhours;
ampm
=  (myhours >= 12) ? ' PM' : ' AM';
mytime
= mydate.getMinutes();
myminutes
=  ((mytime < 10) ? ':0' : ':') + mytime;
if(myday == 0)
day
= " Sunday, ";
else if(myday == 1)
day
= " Monday, ";
else if(myday == 2)
day
= " Tuesday, ";
else if(myday == 3)
day
= " Wednesday, ";
else if(myday == 4)
day
= " Thurday, ";
else if(myday == 5)
day
= " Friday, ";
else if(myday == 6)
day
= " Saturday, ";
if(mymonth == 0) {
month
= "January ";}
else if(mymonth ==1)
month
= "February ";
else if(mymonth ==2)
month
= "March ";
else if(mymonth ==3)
month
= "April ";
else if(mymonth ==4)
month
= "May ";
else if(mymonth ==5)
month
= "June ";
else if(mymonth ==6)
month
= "July ";
else if(mymonth ==7)
month
= "August ";
else if(mymonth ==8)
month
= "September ";
else if(mymonth ==9)
month
= "October ";
else if(mymonth ==10)
month
= "November ";
else if(mymonth ==11)
month
= "December ";
// End -->
</SCRIPT>

<!-- Copy this code into the BODY of your HTML document  -->

<BODY>

<CENTER>
<SCRIPT>
document
.write("<b><font color=#ff0000 face='helvetica,arial'>" + ampmhour + "" + myminutes + ampm)
document
.write(" | " + day + month);
document
.write(myweekday + ", 19" + year + "</font>");
</SCRIPT>
</CENTER>
<!-- END OF SCRIPT -->

 

הקוד ה-15: סטופר

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Stopwatch)</TITLE>
<BODY BGCOLOR=
"#FFFFFF">
<SCRIPT LANGUAGE="JavaScript">
<!--// Copyright (c) 1996 Tomer Shiran. All rights reserved.
// Permission given to use this script provided that the copyright
// notice remains as is. Additional scripts and information are
// available at http://www.geocities.com/SiliconValley/9000/
// set initial values
var timerRunning = false
var timerID = null
// create instance of Date object representing current time
var initial = new Date()
// start timer

function start() {  
       // set the button's label to "stop"     
              document
.forms[0].general.value = "stop"
       // assign the stop function reference to the button's onClick event handler
              document
.forms[0].general.onclick = stop
       // ask the user if to reset the timer   
             
if (confirm("Would you like to reset the timer?"))           
       // set global variable to new time      
              initial
= new Date()             
       // assign milliseconds since 1970 to global variable  
              startTime
= initial.getTime()    
       // make sure the timer is stopped
              stopTimer
()  
       // run and display timer  
              showTimer
()
}

// set button to initial settings

function stop() {   
       // set the button's label to "start"    
              document
.forms[0].general.value = "start"      
       // assign the start function reference to the button's onClick event handler     
              document
.forms[0].general.onclick = start      
       // stop timer
              stopTimer
()
}
       // stop timer

function stopTimer() {    
       // if the timer is currently running    
             
if (timerRunning)         
       // clear the current timeout (stop the timer)         
              clearTimeout
(timerID)     
       // assign false to global variable because timer is not running     
              timerRunning
= false
}

function showTimer() {    
       // create instance of Date representing current timer 
             
var current = new Date()  
       // assign milliseconds since 1970 to local variable   
             
var curTime = current.getTime()  
       // assign difference in milliseconds since timer was cleared 
             
var dif = curTime - startTime           
       // assign difference in seconds to local variable     
             
var result = dif / 1000   
       // is result is not positive     
             
if (result < 1)           
       // attach an initial "0" to beginning          
              result
= "0" + result            
       // convert result to string
              result
= result.toString()
       // if result is integer   
             
if (result.indexOf(".") == -1)          
       // attach ".00" to end           
              result
+= ".00"     
       // is result contains only one digit after decimal point     
             
if (result.length - result.indexOf(".") <= 2)         
       // add a second digit after point       
              result
+= "0"
       // place result in text field    
              document
.forms[0].display.value = result
       // call function recursively immediately (must use setTimeout to avoid overflow) 
              timerID
= setTimeout("showTimer()", 0)  
       // timer is currently running    
              timerRunning
= true
}
// -->
</SCRIPT>
</HEAD>

<FORM>
<INPUT TYPE=
"text" NAME="display" VALUE="" onFocus="this.blur()">
<INPUT TYPE=
"button" NAME="general" VALUE="start" onClick="start()">
</FORM>
<!-- END OF SCRIPT -->

 

 

הקוד ה-16  צבע לרקע  מגניב!!!

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Stopwatch)</TITLE>
<BODY BGCOLOR=
"#FFFFFF">
<SCRIPT LANGUAGE="JavaScript">
<!--// Copyright (c) 1996 Tomer Shiran. All rights reserved.
// Permission given to use this script provided that the copyright
// notice remains as is. Additional scripts and information are
// available at http://www.geocities.com/SiliconValley/9000/
// set initial values
var timerRunning = false
var timerID = null
// create instance of Date object representing current time
var initial = new Date()
// start timer

function start() {  
       // set the button's label to "stop"     
              document
.forms[0].general.value = "stop"
       // assign the stop function reference to the button's onClick event handler
              document
.forms[0].general.onclick = stop
       // ask the user if to reset the timer   
             
if (confirm("Would you like to reset the timer?"))           
       // set global variable to new time      
              initial
= new Date()             
       // assign milliseconds since 1970 to global variable  
              startTime
= initial.getTime()    
       // make sure the timer is stopped
              stopTimer
()  
       // run and display timer  
              showTimer
()
}

// set button to initial settings

function stop() {   
       // set the button's label to "start"    
              document
.forms[0].general.value = "start"      
       // assign the start function reference to the button's onClick event handler     
              document
.forms[0].general.onclick = start      
       // stop timer
              stopTimer
()
}
       // stop timer

function stopTimer() {    
       // if the timer is currently running    
             
if (timerRunning)         
       // clear the current timeout (stop the timer)         
              clearTimeout
(timerID)     
       // assign false to global variable because timer is not running     
              timerRunning
= false
}

function showTimer() {    
       // create instance of Date representing current timer 
             
var current = new Date()  
       // assign milliseconds since 1970 to local variable   
             
var curTime = current.getTime()  
       // assign difference in milliseconds since timer was cleared 
             
var dif = curTime - startTime           
       // assign difference in seconds to local variable     
             
var result = dif / 1000   
       // is result is not positive     
             
if (result < 1)           
       // attach an initial "0" to beginning          
              result
= "0" + result            
       // convert result to string
              result
= result.toString()
       // if result is integer   
             
if (result.indexOf(".") == -1)          
       // attach ".00" to end           
              result
+= ".00"     
       // is result contains only one digit after decimal point     
             
if (result.length - result.indexOf(".") <= 2)         
       // add a second digit after point       
              result
+= "0"
       // place result in text field    
              document
.forms[0].display.value = result
       // call function recursively immediately (must use setTimeout to avoid overflow) 
              timerID
= setTimeout("showTimer()", 0)  
       // timer is currently running    
              timerRunning
= true
}
// -->
</SCRIPT>
</HEAD>

<FORM>
<INPUT TYPE=
"text" NAME="display" VALUE="" onFocus="this.blur()">
<INPUT TYPE=
"button" NAME="general" VALUE="start" onClick="start()">
</FORM>
<!-- END OF SCRIPT -->

 

 

הקוד ה-17   צבעי רקע שמתחלפים אוטומטית

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<SCRIPT LANGUAGE="javascript">
    window
.status = "Currently loading page, please wait and enjoy the colours.";

   
var hexChars = "0123456789ABCDEF";
 
   
function Dec2Hex (Dec)
       
{
          
var a = Dec % 16;
          
var b = (Dec - a) /16;
          
return (hexChars.charAt(b)+hexChars.charAt(a));
       
}

   
function Colors()
      
{
         
for (i = 1; i < 256; i++)
            
{
                window
.document.bgColor= "#FF" + Dec2Hex (i) + "00";
            
}
      
}
    Colors
();

//-->
</SCRIPT>

<SCRIPT LANGUAGE="javascript">

</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

<!--

 window
.defaultStatus = "Nice arragement huh?";

// FadeScript begin

function MakeArray(N)
 
{
 
this.length = N;
 
for (I = 1; I <= N; I++)
  
this[I] = 0;
 
return this;
 
}

Hexa
= new MakeArray(16);

for (I = 0; I < 10; I++)
 Hexa
[I] = I;

Hexa
[10]="A"; Hexa[11]="B"; Hexa[12]="C";
Hexa
[13]="D"; Hexa[14]="E"; Hexa[15]="F";

function Hex(I)
 
{
 
if (I < 0)
   
return "FF";
  
else
   
if (I > 255)
     
return "00";
    
else
     
return "" + Hexa[Math.floor(I/16)] + Hexa[I%16];
 
}

function SetbgColor(R, G, B)
 
{
  HexRed
= Hex(R); HexGreen = Hex(G); HexBlue = Hex(B);
  document
.bgColor = "#" + HexRed + HexGreen + HexBlue;
 
}

function Fade(StartRed, StartGreen, StartBlue, EndRed, EndGreen,
EndBlue
,
Step
)
 
{
 
for(I = 0; I <= Step; I++)
  
{
    Rtmp
= Math.floor(StartRed   * ((Step-I)/Step) + EndRed   *
(I/Step));
    Gtmp
= Math.floor(StartGreen * ((Step-I)/Step) + EndGreen *
(I/Step));
    Btmp
= Math.floor(StartBlue  * ((Step-I)/Step) + EndBlue  *
(I/Step));

    SetbgColor
(Rtmp,Gtmp,Btmp);
  
}
 
}

function FadeIn()
 
{
  Fade
(255,255,255, 0,0,0, 64);
 
}

FadeIn
();

</SCRIPT>
<!-- END OF SCRIPT -->

 

 

הקוד ה-18: אי מייל

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<form>

<INPUT TYPE=
"button" VALUE="e-mail" onClick="parent.location='mailto:WHATEVER YOUR E-MAIL ADDRESS IS! (duh)?subject=You can also put an automatic subject here!'"></FORM>
<!-- END OF SCRIPT -->

 

 

הקוד ה-19- משחקים   כדור סל

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML><HEAD><TITLE>JavaScript Baseball</TITLE></HEAD>
<BODY BGCOLOR=
"FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
<font face=
"arial">
<h1><center>Baseball</center></h1><p>

<font size=
2>
<b><center>Directions</center></b>
Your team is up to bat. It is the bottom of the 9th inning.
The opposing team is ahead 1 to 0.<p>


<b>Game Rules</b><br>
<b>For this game it is ASSUMED:*</b><br>
1.     If your team can get five hits or walks, you will score two runs and WIN.<BR>
2.     If you get four hits or walks, you will score one run.  The game will
        then TIED and go into extra innings.
       (The extra innings are not played in this game.)<BR>
3.     If you score less than four hits or walks, YOUR TEAM LOSES.<p>

<b>How to play</b><br>
1.     With your mouse, check in any one of the circles in the PITCHED
        BALL CHART.  It wil show a Ball, Strike, Out, or hit.  Record
        the ball, strike, out, or hit by filling in the box in the SCORE
        CHART for Batter 1.<BR>
2.     Proceed until Batter 1:<BR>
       a.  has three strikes or an out - fill in the box under OUT or<BR>
       b.  has four balls - fill in the circle under HIT OR WALK, or<BR>
       c.  makes a hit - fill in the box under HIT OR WALK.<BR>
3.     Proceed with Batter 2, ect.<BR>
4.     Continue until your team has 3 OUTS or until it has 5 HITS OR WALKS.<p>

<center><h2>Pitched Ball Chart</h2></center>
<!-- Baseball                              -->
<!-- This program was made by tfortune@students.wisc.edu.          -->
<!-- You can copy this program freely.  If you want it for your webpage, just
include a link to http://www.geocities.com/Area51/Zone/3561          -->

<FORM>
<p>
<center>
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Out"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Out"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Hit"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<center>
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Strike!"
onClick=
"alert(value)"
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Ball"
onClick=
"alert(value)">
</form>

<center><h2>Score Chart</h2></center>
<!-- Baseball                              -->
<!-- This program was made by tfortune@students.wisc.edu.          -->
<!-- You can copy this program freely.  If you want it for your webpage, just
include a link to http://www.geocities.com/Area51/Zone/3561          -->

<FORM>
<p></center></center></center>
<center>Batter 1|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Only 2 chances left!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="You only need 4 more!"
onClick=
"alert(value)">
<center>Batter 2|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
<center>Batter 3|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
<center>Batter 4|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
<center>Batter 5|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
<center>Batter 6|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
<center>Batter 7|
Balls:
<INPUT TYPE=
"checkbox" value="3 more until a walk!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Only 2 more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="One more.  You can make it!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Great job.  Mark a Walk."
onClick=
"alert(value)">
Strikes:
<INPUT TYPE=
"checkbox" value="Uh Oh!  Only 2 more chances."
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Be Careful.  Only one more!"
onClick=
"alert(value)">
<INPUT TYPE=
"checkbox" value="Too Bad!  Mark an Out."
onClick=
"alert(value)">
Out:
<INPUT TYPE=
"checkbox" value="Too Bad!"
onClick=
"alert(value)">
Hit or Walk:
<INPUT TYPE=
"checkbox" value="Excellent!"
onClick=
"alert(value)">
</form>
<!-- Baseball                              -->
<!-- This program was made by tfortune@students.wisc.edu.          -->
<!-- You can copy this program freely.  If you want it for your webpage, just
include a link to http://www.geocities.com/Area51/Zone/3561          -->

<FORM>
<p>
<center>Outs:
<INPUT TYPE=NAME WIDTH=
400%></center>
</form>
<!-- Baseball                              -->
<!-- This program was made by tfortune@students.wisc.edu.          -->
<!-- You can copy this program freely.  If you want it for your webpage, just
include a link to http://www.geocities.com/Area51/Zone/3561          -->

<FORM>
<p>
<center>Hits or Walks:
<INPUT TYPE=NAME WIDTH=
400%></center>
</form>

<h3>5 Hits or Walks - You Win</h3>
<h3>4 Hits or Walks - You Tie</h3>
<h3>Less than 4 Hits or Walks - You
Lose</h3></center></center></center></center>
</center></center></center></center></center></center></center></center></center>




</BODY>
</HTML>
<!-- END OF SCRIPT -->

 

 

הקוד ה-20  - משחקים black jack

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HEAD>
<TITLE>BlackJack</TITLE>
<BODY BGCOLOR=
"#FFFFFF">
</HEAD>
<!-- bjack.htm:   JavaScript Black Jack                     -->
<!--              The Complete Idiot's Guide to JavaScript  -->
<!--              Chapter 18                                -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from non-JavaScript browsers
function random(maxValue)
{
   day
= new Date();
   hour
= day.getHours();
   min
= day.getMinutes();
   sec
= day.getSeconds();
  
return (((hour + 1) * (min + 1) * sec) % maxValue) + 1;
}

function pickSuit()
{
   suit
= random(4);

  
if(suit == 1)
     
return "Spades";

  
if(suit == 2)
     
return "Clubs";

  
if(suit == 3)
     
return "Diamonds";

  
return "Hearts";
}

function cardName(card)
{
  
if(card == 1)
     
return "Ace";

  
if(card == 11)
     
return "Jack";

  
if(card == 12)
     
return "Queen";

  
if(card == 13)
     
return "King";

  
return "" + card;
}

function cardValue(card)
{
  
if(card == 1)
     
return 11;

  
if(card > 10)
     
return 10;

  
return card;
}

function PickACard(strWho)
{
   card
= random(13);
   suit
= pickSuit();

   //alert(strWho + " picked the " + cardName(card) + " of " + suit);

  
return cardValue(card);
}

function NewHand(form)
{
   form
.dealer.value = 0;
   form
.you.value = 0;

   form
.dealer.value = eval(form.dealer.value) + PickACard("Dealer");
   form
.you.value = eval(form.you.value) + PickACard("You");
}

function Dealer(form)
{
  
while(form.dealer.value < 17)
  
{
      form
.dealer.value = eval(form.dealer.value) + PickACard("Dealer");
  
}
}

function User(form)
{
   form
.you.value = eval(form.you.value) + PickACard("You");

  
if(form.you.value > 21)
  
{
      alert
("You busted!");
  
}
}

function LookAtHands(form)
{
  
if(form.dealer.value > 21)
  
{
      alert
("House busts!  You win!");
  
}
  
else   if(form.you.value > form.dealer.value)
  
{
      alert
("You win!");
  
}
  
else
  
if(form.dealer.value == form.you.value)
  
{
      alert
("Push!");
   
}
  
else
  
{
      alert
("House wins!");
  
}
}
//-->
</SCRIPT>


<CENTER><H2>BlackJack</H2></CENTER>
<CENTER>To start a hand, click the <i>New Hand</i> button.</CENTER>
<HR>

<CENTER>
<FORM>
<TABLE BORDER=3>
<TR>
 
<TD>Dealer has</TD>
 
<TD><INPUT TYPE=TEXT NAME=dealer></TD>
</TR>
<TR>
 
<TD>You have</TD>
 
<TD><INPUT TYPE=TEXT NAME=you></TD>
</TR>
</TABLE>

<P>

<CENTER>
<INPUT TYPE=BUTTON VALUE=
"Hit Me" onClick=User(this.form)>
<INPUT TYPE=BUTTON VALUE=
"Stand" onClick="Dealer(this.form);LookAtHands(this.form);">
<INPUT TYPE=BUTTON VALUE=
"New Hand" onClick=NewHand(this.form)>
</CENTER>

</FORM>
<!-- END OF SCRIPT -->

 

 

 

 

 

הקוד ה-21 משחקים כדור רגל

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML><HEAD><TITLE>Java Goodies</TITLE></HEAD>
<BODY BGCOLOR=
"FFFFFF">
<font face=arial>
<h1><center>JavaScript Football</center></h1>
<font size=
2>
<b>Directions</b><br>
You're a quaterback in the Ultra Bowl. You are down 6 points
with only 1 minute left in the game. You have the ball on your
20 yard line and you must score a touchdown to win.<p>

<b>How to play</b><br>
1. Select either a RUNNING or a PASSING Play by filling in block in the
appropriate Down chart.  If a number appears, advance your ball on the
field that number of  yards by checking in the marker boxes on the field. 
If 0 appears,  there is no gain and you lose that down.
<P>
2. Continue until you get 10 or more yards and another first down.  You lose
possesion, and the game, if you advance less than 10 yards in 4 plays
(Downs).
<P>
3. If a Fumble or an Interception appears, the opposing team gains
possesion and your team loses the game.  If you get a Touchdown, you score 7 points* and
your team wins the game.
<P>

<center><h2>Field</center></h2>
<!-- Football                              -->
<!-- This program was made by tfortune@students.wisc.edu.          -->
<!-- You can copy this program freely.  If you want it for your webpage, just
include a link to http://www.geocities.com/Area51/Zone/3561          -->

<FORM>
<p><pre>
________________________________________________________________________
________________
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |  <INPUT TYPE=
"checkbox"
value=
"Touchdown!  You Win!" onClick="alert(value)">   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|  <INPUT TYPE=
"checkbox"
value=
"Glorious victory is only 5 yards away!" onClick="alert(value)">   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
<INPUT TYPE=
"checkbox" value="10
more yards!" onClick="alert(value)">   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
<INPUT TYPE=
"checkbox" value="You can
do that in one play." onClick="alert(value)">   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |  <INPUT
TYPE=
"checkbox" value="I can almost
smell victory!" onClick="alert(value)">   |   |   |   | T |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |  <INPUT
TYPE=
"checkbox" value="You.re good
at this!" onClick="alert(value)">   |   |   |   |   | O |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |  <INPUT
TYPE=
"checkbox" value="Only 30 more
yards!" onClick="alert(value)">   |   |   |   |   |   | U |
|   |   |   |   |   |   |   |   |   |   |   |   |   |  <INPUT
TYPE=
"checkbox" value="Keep it up!"
onClick=
"alert(value)">   |   |   |   |   |   |   | C |
|   |   |   |   |   |   |   |   |   |   |   |   |  <INPUT TYPE=
"checkbox"
value=
"You.re halfway
done!" onClick="alert(value)">   |   |   |   |   |   |   |   | H |
|   |   |   |   |   |   |   |   |   |   |   |  <INPUT TYPE="checkbox"
value=
"Already to the 45?"
onClick=
"alert(value)">   |   |   |   |   |   |   |   |   | D |
|   |   |   |   |   |   |   |   |   |   |  <INPUT TYPE=
"checkbox"
value=
"Half of the field!"
onClick=
"alert(value)">   |   |   |   |   |   |   |   |   |   | O |
|   |   |   |   |   |   |   |   |   |  <INPUT TYPE=
"checkbox" value="5 more
to half of the field!"
onClick="alert(value)">   |   |   |   |   |   |   |   |   |   |   | W |
|   |   |   |   |   |   |   |   |  <INPUT TYPE=
"checkbox" value="You.re 1/4
of the way there!"
onClick="alert(value)">   |   |   |   |   |   |   |   |   |   |   |   | N |
|   |   |   |   |   |   |   |  <INPUT TYPE=
"checkbox" value="Now we.re
movin.!"
onClick="alert(value)">   |   |   |   |   |   |   |   |   |   |   |   |   |
  |
|   |   |   |   |   |   |  <INPUT TYPE=
"checkbox" value="Your first, First
Down!"
onClick="alert(value)">   |   |   |   |   |   |   |   |   |   |   |   |   |
  |   |
|   |   |   |   |   |  <INPUT TYPE=
"checkbox" value="And we.re off!"
onClick=
"alert(value)">   |   |   |   |   |   |   |   |   |   |   |   |   |
  |   |   |
|___|___|___|___|__<INPUT TYPE=
"checkbox" value="Here we go!"
onClick=
"alert(value)">___|___|___|___|___|___|___|___|___|___|___|___|___|_
__|___|_
__|___|
    G   5   10  15  20  25  30  35  40  45  50  45  40  35  30  25  20  15
10  5   G

<center><h3>Down        Running Plays</center></h3></pre>
<center>1st <INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)"></center>
<center>2nd <INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)"></center>
<center>3rd <INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)"></center>
<center>4th <INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="Fumble." onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="5 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)"></center>
<pre><center><h3>Down         Passing Plays</center></h3></pre>
<center>1st <INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)"></center>
<center>2nd <INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)"></center>
<center>3rd <INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="15 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="20 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)"></center>
<center>4th <INPUT TYPE=
"checkbox" value="30 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="Touchdown!" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="25 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="0 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="10 Yards" onClick="alert(value)">
<INPUT TYPE=
"checkbox" value="Interception" onClick="alert(value)"></center>
</form>



</BODY>
</HTML>
<!-- END OF SCRIPT -->

 

 

 

הקוד ה-22-אסטרולוגיה 

 


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Astrology Signs</TITLE>
<BODY BGCOLOR=
"WHITE">
<SCRIPT LANGUAGE="JavaScript">


<!--
function getsign () {

       
var today = new Date();
       
var psj=0;     

       
var birth = new Date(document.frm.indate.value);
        birth
.setYear(today.getYear());
       
var astrosign="Capricornus"

       
var birthsecs = birth.getTime()

        astro
= new Date("January 20,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Aquarius"

        astro
= new Date("February 19,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Piscus"
       
       
var astro = new Date("March 21,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Aries"

        astro
= new Date("April 20,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Taurus"

        astro
= new Date("May 21,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Gemini"

        astro
= new Date("June 22,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Cancer"

        astro
= new Date("July 23,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Leo"

        astro
= new Date("August 23,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Virgo"

        astro
= new Date("September 23,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Libra"

        astro
= new Date("October 23,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Scorpius"

        astro
= new Date("November 23,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Sagittarius"

        astro
= new Date("December 22,1997");
        astro
.setYear(today.getYear());
       
if (birthsecs > astro.getTime()) astrosign="Capricornus"


        document
.frm.astro.value = astrosign;

}
// -->

</SCRIPT>
</HEAD>

<BODY BGCOLOR=
"000000" text="ffffff">

COMMENTS:
Date format: "January 1, 1997"

<FORM NAME=
"frm">
<INPUT TYPE=
"text" SIZE="41" NAME="indate">
<INPUT TYPE=
"button" VALUE="Monitor" onClick="getsign()">
<br>
<hr>
<INPUT TYPE=
"text" SIZE="41" NAME="astro">
</FORM>
<P>
If you ever need to know your astrology sign, this is the script for you!
<!-- END OF SCRIPT -->

 

 

קוד ה-23- יום הלדת- רוצים לדעת באיזה יום נולדתם?


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<HEAD>
<TITLE>Birthday Script</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- begin script

//General Array Function
function MakeArray(n) {
  
this.length = n;
  
for (var i = 1; i <=n; i++) {
    
this[i] = 0;
  
}
}

//Initialize Days of Week Array
days
= new MakeArray(7);
days
[0] = "Saturday"
days
[1] = "Sunday"
days
[2] = "Monday"
days
[3] = "Tuesday"
days
[4] = "Wednesday"
days
[5] = "Thursday"
days
[6] = "Friday"

//Initialize Months Array
months
= new MakeArray(12);
months
[1] = "January"
months
[2] = "February"
months
[3] = "March"
months
[4] = "April"
months
[5] = "May"
months
[6] = "June"
months
[7] = "July"
months
[8] = "August"
months
[9] = "September"
months
[10] = "October"
months
[11] = "November"
months
[12] = "December"

//Day of Week Function
function compute(form) {
  
var val1 = parseInt(form.day.value, 10)
  
if ((val1 < 0) || (val1 > 31)) {
      alert
("Day is out of range")
  
}
  
var val2 = parseInt(form.month.value, 10)
  
if ((val2 < 0) || (val2 > 12)) {
      alert
("Month is out of range")
  
} 
  
var val2x = parseInt(form.month.value, 10)
  
var val3 = parseInt(form.year.value, 10)
  
if (val3 < 1900) {
      alert
("You're that old!")
  
}
  
if (val2 == 1) {
      val2x
= 13;
      val3
= val3-1
  
}
  
if (val2 == 2) {
      val2x
= 14;
      val3
= val3-1
  
}
  
var val4 = parseInt(((val2x+1)*3)/5, 10)
  
var val5 = parseInt(val3/4, 10)
  
var val6 = parseInt(val3/100, 10)
  
var val7 = parseInt(val3/400, 10)
  
var val8 = val1+(val2x*2)+val4+val3+val5-val6+val7+2
  
var val9 = parseInt(val8/7, 10)
  
var val0 = val8-(val9*7)
   form
.result1.value = months[val2]+" "+form.day.value +", "+form.year.value
   form
.result2.value = days[val0]
}  

// end script -->
</SCRIPT>
</HEAD>
<body bgcolor=
"ffffff">
<H3><i>On what day of the week were you born?</i></H3>
<b>Enter your birthday</b> (then hit the "Update" button):<P>
<FORM>
Numeric Month (1-12):
<INPUT TYPE=
"text" NAME="month" SIZE=2 >
<P>
Day of Month (1-31):
<INPUT TYPE=
"text" NAME="day" SIZE=2 >
<P>
Year (eg. 1960):
<INPUT TYPE=
"text" NAME="year" SIZE=4 >
<P>
<INPUT TYPE=
"button" VALUE="Update" ONCLICK="compute(this.form)">
<INPUT TYPE=
"reset" VALUE="Clear">
<P>
Date of Birth:
<INPUT TYPE=
"text" NAME="result1" SIZE=18 >
<P>
Day of Week:
<INPUT TYPE=
"text" NAME="result2" SIZE=18 >
</FORM>
<!-- END OF SCRIPT -->

 

 

קוד 24-  תמונות


<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<script language="javascript">

// This script is copyright (c) Ray Rarey, 1997 //
//This script is not for public re-distribution without written consent //

var numofimages = 10
for (X=1;X<numofimages; X++) {
document
.write("<IMG SRC="+X+".jpg>")}
</SCRIPT>
<!-- END OF SCRIPT -->

 

 

עד כאן הקודים!!!

רוצים עוד?  פנו אליי באי סי קיו 54324746

אם נתקלם בבעיה גם תוכלו לפנות אליי בכתובת

 yossibazar@hotmail.com

האתר הפיצוץ של יוסי

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1