Javscript Football
soarce code
Source code
for Javscript Football:copy and paste everything below this line and paste it
into your web page********************* copy everything below here
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<SCRIPT language=JavaScript>
//Feel free to use this game on your site just keep a link back to playandpost.com
var theScore = 7
function hole(form) {
if (document.game.score2.value > 4) {
if (document.game.score2.value == document.game.score1.value - 7) {
alert("Thier coming back!")
}
if (document.game.score2.value == document.game.score1.value) {
alert("The computer takes the lead!")
}
}
if (document.game.score2.value == 7) {
document.game.score2.value = theScore + 7
alert("They scored again!!")
return false
}
if (document.game.score2.value == 14) {
document.game.score2.value = theScore + 14
alert("They can't be stopped")
return false
}
if (document.game.score2.value == 21) {
document.game.score2.value = theScore + 21
alert("What were you thinking")
return false
}
if (document.game.score2.value == 28) {
document.game.score2.value = theScore + 28
alert("You need to try harder")
return false
}
if (document.game.score2.value == 35) {
document.game.score2.value = theScore + 35
alert("Score one for the visitors")
return false
}
if (document.game.score2.value == 42) {
document.game.score2.value = theScore + 42
alert("It looks like the home team is gonna lose")
return false
}
if (document.game.score2.value == 49) {
document.game.score2.value = "WON"
alert("You Lose!! LOSER")
document.game.score1.value = "LOST"
var standings = parseFloat(document.game.losses.value)
document.game.losses.value = standings + 1
if (document.game.losses.value > document.game.wins.value) {
if (document.game.losses.value == 3) {
alert("Thanks for playing this long but you LOSE LOSER Try again next season")
document.game.score2.value = 0
document.game.score1.value = 0
document.game.wins.value = 0
document.game.losses.value = 0
return false
}
}
return false
}
document.game.score2.value = 7
alert("They Scored")
}
function ass(form) {
if (document.game.score1.value > 4) {
if (document.game.score1.value == document.game.score2.value - 7) {
alert("All tied up")
}
}
if (document.game.score1.value == 7) {
document.game.score1.value = theScore + 7
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 14) {
document.game.score1.value = theScore + 14
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 21) {
document.game.score1.value = theScore + 21
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 28) {
document.game.score1.value = theScore + 28
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 35) {
document.game.score1.value = theScore + 35
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 42) {
document.game.score1.value = theScore + 42
alert("TouchDown!!")
return false
}
if (document.game.score1.value == 49) {
document.game.score1.value = " WON"
document.game.score2.value = "LOST"
alert("CONGRADULATIONS YOU WON")
var standings = parseFloat(document.game.wins.value)
document.game.wins.value = standings + 1
if (document.game.wins.value > document.game.losses.value) {
if (document.game.wins.value == 3) {
alert("You are a JFL2K1 CHAMPION")
document.game.score2.value = 0
document.game.score1.value = 0
document.bgColor="black"
return false
}
}
return false
}
document.game.score1.value = 7
alert("TOUCHDOWN!!")
}
</SCRIPT>
<META NAME="GENERATOR" Content="Visual Page 2.0 for Windows">
<TITLE>JFL Football</TITLE>
</HEAD>
<BODY TEXT="white" BGCOLOR="#006600" LINK="white" ALINK="white" VLINK="white">
<FORM ACTION="default.cgi" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded" name="game" onsubmit="return true">
<DIV ALIGN="RIGHT">
<P>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="711" HEIGHT="351">
<TBODY>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"><B><A HREF="http://www.playandpost.com">JFL FOOTBALL</A></B>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="black"><B><FONT SIZE="2">G</FONT></B></TD>
<TD WIDTH="13%" BGCOLOR="black">
<P ALIGN="CENTER"><B><FONT SIZE="2" COLOR="white">START</FONT></B>
</TD>
<TD WIDTH="14%" BGCOLOR="black">
<P ALIGN="RIGHT"><B><FONT SIZE="2">G</FONT></B>
</TD>
<TD WIDTH="1%" BGCOLOR="white"> </TD>
</TR>
<TR>
<TD WIDTH="61%"> </TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">10<A HREF="http://www.playandpost.com/" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'"
span><FONT COLOR="green">JUKEEEE</FONT></A></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><A HREF="http://www.playandpost.com/" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'"
span><FONT COLOR="green">JUKEeeeee</FONT></A>10
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')">Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"><A HREF="http://www.playandpost.com">Brought to you by PlayandPost.com</A>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">20 <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('TACKLED on the 20 average return')"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0"
onmouseover="hole(this.form)"></MARQUEE>20
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')">Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"><B><FONT SIZE="4" COLOR="#006600" FACE="Rockwell">JavaScript Football League Champion</FONT></B>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">30 <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green">
<MARQUEE>
<P><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('POW hammered at the 30 ')"></MARQUEE>
</TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE>30
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"> <FONT COLOR="#006600"> Thanks for playing JFL2K1</FONT>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">40 <MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <A HREF="http://www.playandpost.com/" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'"
span><FONT COLOR="green">JU</FONT></A> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM"
BORDER="0" onmouseover="alert('TACKLED at the 40 nice return')"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE>40
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')">Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"> First to 50 wins
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">50 <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('Just breaks mid field')"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0"
onmouseover="alert('POW')"></MARQUEE>50
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')">Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<CENTER>
<P> HOME <INPUT TYPE="TEXT" NAME="score1" SIZE="4">
</CENTER>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">40 <MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('Great return')"></MARQUEE><A
HREF="http://www.playandpost.com/" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'"
span><FONT COLOR="green">JU</FONT></A></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0"
onmouseover="hole(this.form)"></MARQUEE>40
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<CENTER>
<P> VISITOR <INPUT TYPE="TEXT" NAME="score2" SIZE="4">
</CENTER>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">30 <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('Tripped up at the 25 yard line')"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <A HREF="http://www.playandpost.com/" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'"
span><FONT COLOR="green">JU</FONT></A> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM"
BORDER="0" onmouseover="alert('TACKLED by the kicker')" ,onMouseOver="window.status='Gotcha';" return true?></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0"
onmouseover="hole(this.form)"></MARQUEE>30
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER">First to 3 wins
</TD>
<TD WIDTH="3%" BGCOLOR="white">X<A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>x</A></TD>
<TD WIDTH="8%" BGCOLOR="green">20 <MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="alert('You made it al the way to the 15 great job')"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE>20
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<P ALIGN="CENTER"> SEASON
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="green">10 <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="13%" BGCOLOR="green"> <MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" onmouseover="hole(this.form)"></MARQUEE></TD>
<TD WIDTH="14%" BGCOLOR="green">
<P ALIGN="RIGHT"><MARQUEE behavior=alternate><IMG SRC="fp.gif" WIDTH="30" HEIGHT="27" ALIGN="BOTTOM" BORDER="0"
onmouseover="hole(this.form)"></MARQUEE>10
</TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<CENTER>
<P>WINS<INPUT TYPE="TEXT" NAME="wins" SIZE="3" VALUE="0">
</CENTER>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="black">
<P ALIGN="RIGHT"><B><A HREF="http://moneybin.itgo.com/" onmouseover="ass(this.form) " onmouseout="window.status=' '; return true"><FONT
SIZE="4">G</FONT><FONT SIZE="4" COLOR="black">TTTTTT</FONT></A></B>
</TD>
<TD WIDTH="13%" BGCOLOR="black">
<P ALIGN="CENTER"><B><A HREF="http://moneybin.itgo.com/" onmouseover="ass(this.form) " onmouseout="window.status=' '; return true"><FONT
SIZE="4" COLOR="white">TOUCHDOWN</FONT></A></B>
</TD>
<TD WIDTH="14%" BGCOLOR="black"><B><A HREF="http://moneybin.itgo.com/" onmouseover="ass(this.form) " onmouseout="window.status=' '; return true"><FONT
SIZE="4" COLOR="black">TTTTTT</FONT><FONT SIZE="4">G</FONT></A></B></TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
<TR>
<TD WIDTH="61%">
<CENTER>
<P>LOSSES<INPUT TYPE="TEXT" NAME="losses" SIZE="3" VALUE="0">
</CENTER>
</TD>
<TD WIDTH="3%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
<TD WIDTH="8%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>xvvvvvvvvvvvv</A></TD>
<TD WIDTH="13%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>xxxxxxxxxxxxxxxxxx</A> </TD>
<TD WIDTH="14%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>xxxxxxxxxxxxxx</A></TD>
<TD WIDTH="1%" BGCOLOR="white"><A HREF="http://www.htmlgoodies.com/" onmouseover="alert('Out of bounds')" ,onMouseOver="window.status='Go" return
true? to the Goodies Home Page?;>Xx</A></TD>
</TR>
</TBODY> </TABLE>
</DIV>
<DIV ALIGN="CENTER">
<P>
</DIV>
</FORM>
</BODY>
</HTML>