Best Download Sites Login
Site Login

Enter Up To 8 Players In A Tournament

Description
Use Javascript to enter up to 8 players in a tournament and this script will help track the tournament results. Just enter each players name, then indicate if they won that level of tournament, click the checkbox or the button with their name. If they won, they advance to the next level....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.


<!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
function scoreWinner(personA, personB, next1, next2, next3, personAwin, personBwin) {
with (personAwin.form)
{
if (!personAwin.checked && !personBwin.checked)
{
next1.value = "";
next2.value = "";
next3.value = "";
}
else {
next1.value = (personAwin.checked ? personA.value : "                 ");
personBwin.checked = false;
next2.value = "";
next3.value = "";
      }
   }
}

function advance(winner, loser, place) {
place.value = winner.value;
}
//  End -->
</script>

</HEAD>

<BODY Background=../graphics/grayback.jpg>
<center>
<form name=tournament>
<p>Enter the player names then click the checkbox
for the winner of each round.<br>
After the initial round, simply click the name of the winner at that level.
<p>
<table width=500 border=1 cellspacing=1 cellpadding=1>
  <tr>
    <td align="center">
    Players</td>
    <td colspan=2 align=center>
    Round 1 Results</td>
    <td colspan=2 align=center>
    Round 2 Results</td>
    <td colspan=2 align=center>
    Round 3 Results</td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player1 size=10><input type=checkbox name=player1win onClick="scoreWinner(this.form.player1, this.form.player2, this.form.round1winner1, this.form.round2winner1, this.form.round3winner, this, this.form.player2win);">
    </td>
    <td rowspan=2 colspan=2 align=center>
    <input type=button name=round1winner1 value="                 " onClick="advance(this, this.form.round1winner2, this.form.round2winner1);">
    </td>
    <td rowspan=4 colspan=2 align=center>
    <input type=button name=round2winner1 value="                 " onClick="advance(this, this.form.round2winner2, this.form.round3winner);">
    </td>
    <td rowspan=8 colspan=2 align=center>
    <input type=button name=round3winner value="                 ">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player2 size=10><input type=checkbox name=player2win onClick="scoreWinner(this.form.player2, this.form.player1, this.form.round1winner1, this.form.round2winner1, this.form.round3winner, this, this.form.player1win);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player3 size=10><input type=checkbox name=player3win onClick="scoreWinner(this.form.player3, this.form.player4, this.form.round1winner2, this.form.round2winner1, this.form.round3winner, this, this.form.player4win);">
    </td>
    <td rowspan=2 colspan=2 align=center>
    <input type=button name=round1winner2 value="                 " onClick="advance(this, this.form.round1winner1, this.form.round2winner1);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player4 size=10><input type=checkbox name=player4win onClick="scoreWinner(this.form.player4, this.form.player3, this.form.round1winner2, this.form.round2winner1, this.form.round3winner, this, this.form.player3win);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player5 size=10><input type=checkbox name=player5win onClick="scoreWinner(this.form.player5, this.form.player6, this.form.round1winner3, this.form.round2winner2, this.form.round3winner, this, this.form.player6win);">
    </td>
    <td rowspan=2 colspan=2 align=center>
    <input type=button name=round1winner3 value="                 " onClick="advance(this, this.form.round1winner4, this.form.round2winner2);">
    </td>
    <td rowspan=4 colspan=2 align=center>
    <input type=button name=round2winner2 value="                 " onClick="advance(this, this.form.round2winner1, this.form.round3winner);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player6 size=10><input type=checkbox name=player6win onClick="scoreWinner(this.form.player6, this.form.player5, this.form.round1winner3, this.form.round2winner2, this.form.round3winner, this, this.form.player5win);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player7 size=10><input type=checkbox name=player7win onClick="scoreWinner(this.form.player7, this.form.player8, this.form.round1winner4, this.form.round2winner2, this.form.round3winner, this, this.form.player8win);">
    </td>
    <td rowspan=2 colspan=2 align=center>
    <input type=button name=round1winner4 value="                 " onClick="advance(this, this.form.round1winner3, this.form.round2winner2);">
    </td>
  </tr>
  <tr>
    <td align=center>
    <input type=text name=player8 size=10><input type=checkbox name=player8win onClick="scoreWinner(this.form.player8, this.form.player7, this.form.round1winner4, this.form.round2winner2, this.form.round3winner, this, this.form.player7win);">
    </td>
  </tr>
</table>
</form>


</center>
</BODY>
</HTML>
 

Business Proposal 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