|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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> |
| Sponsored Links |
|
|
|
|||
|
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.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP accessing through remotely javascript from another website | deny | Request Services (Paid) | 4 | 01-28-2008 08:02 AM |
| Javascript + browsers question | psychological | JavaScript and CSS | 2 | 01-27-2008 09:39 AM |
| [Easy as Pie] Unobtrusive JavaScript | Kernel | Programming News | 0 | 12-20-2007 09:07 AM |
| How I can execute Javascript into Perl? | tony.willson | Perl | 3 | 12-14-2007 10:58 AM |
| Counting Files with JavaScript | Matt | JavaScript and CSS | 5 | 08-01-2007 12:02 PM |
| Xav | ........ | 1276.19 |
| MeTh0Dz|Reb0rn | ........ | 1048.58 |
| morefood2001 | ........ | 879.43 |
| John | ........ | 872.39 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 761.06 |
| Brandon W | ........ | 684.87 |
| chili5 | ........ | 294.12 |
| Steve.L | ........ | 216.18 |
| dargueta | ........ | 192.86 |
Goal: 100,000 Posts
Complete: 81%