I am in desperate need of some help. I am trying to complete an assigment and can't figure it out. I am sure to a professional it will seem a piece of cake...but to a novice like me it is about to drive me crazy. I am trying to take the form the I have created and allow a user to fill the boxes with numbers and have a win percentage completed by pushing a button. I have most of the work done, but I am missing the scripting to make it all work. I have only really tried to get the script for the first team and then will duplicated it for the following teams, if I could ever figure it out.
Please help :)
Here is the code I have so far:
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<CENTER>
<H2>Mens's Basketball</H2></CENTER>
<center>
<script>
function calcpct(form)
{
Var drwin = st.drwin.value;
var drloss = st.drloss.value;
return ((drwin / drloss");
}
</script>
<form>
<form name=st7y >
<TABLE border=1>
<TBODY>
<TH align=center>Team</TH>
<TH align=center>Wins</TH>
<TH align=center>Losses</TH>
<TH align=center>Win Percent</TH></TR>
<TR>
<TD align=center bgColor=lightblue>Drake</TD>
<TD><input type=text name=drwin ALIGN TOP></TD>
<TD><input type=text name=drloss ALIGN TOP></TD>
<TD><input type=text name=drpct ALIGN TOP></TD></TR>
<TR>
<TD align=center bgColor=blueviolet>UNI</TD>
<TD align=center><input type=text name="uniwin" ALIGN TOP></TD>
<TD align=center><input type=text name="uniloss" ALIGN TOP></TD>
<TD align=center><input type=text name="unipct" ALIGN TOP></TD></TR>
<TR>
<TD align=center bgColor=red>Iowa State</TD>
<TD align=center><input type=text name="isuwin" ALIGN TOP></TD>
<TD align=center><input type=text name="isuloss" ALIGN TOP></TD>
<TD align=center><input type=text name="isupct" ALIGN TOP></TD></TR>
<TR>
<TD align=center bgColor=yellow>Iowa</TD>
<TD align=center><input type=text name="uiwin" ALIGN TOP></TD>
<TD align=center><input type=text name="uiloss" ALIGN TOP></TD>
<TD align=center><input type=text name="uipct" ALIGN TOP></TD>
</TR>
</CENTER>
</TBODY>
</TABLE>
</form>
<CENTER>
<H2><input name="calculate" type=button VALUE="Calculate Winning Percentages" onclick="calcpct(st)"></h2>
</CENTER>
</BODY>
</HTML>
Javascript Help...
Started by MRO001, Mar 02 2008 04:21 PM
1 reply to this topic
#1
Posted 02 March 2008 - 04:21 PM
|
|
|
#2
Posted 02 March 2008 - 04:27 PM
If you would be willing to help me I am willing to pay. Tell me a reasonable number and I can pay through paypal if you have an account. I have much of the work done and I am told that it will only take someone who knows what they are doing a minute or 2 to do. Email me at mro001@hotmail.com. Thanks for reading.


Sign In
Create Account

Back to top









