• Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.


Tournament result app in Javascript - Step By Step tutorial to make Tournament result app APP in javascript

What is Tournament result app?

  Tournament result app  shows result of any type of match from round 1 to round final .In this Tournament result app you 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. Really this tournament result app is Cool!

 TWO STEPS TO INSTALL  Tournament result app:

   1.  Copy the coding into the HEAD of your HTML document
   2.  Put the last coding into the BODY of your HTML document


STEP-ONE:Paste this code into the HEAD of your HTML document


<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!
Tournament result app step 1  >

<!-- 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>

<!Tournament result app step one end >
STEP TWO: Add the last code in the BODY of your HTML document
<!Tournament result app step two start >
<BODY>
<b>
Tournament result app-Let's enjoy Tournament result app</b><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>

<!Tournament result app step two end >
If you have any query about Tournament result app in Javascript - Step By Step tutorial to make Tournament result app in javascript then post it in comment

No comments:

Post a Comment