Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 06-05-2008, 01:34 AM   #1 (permalink)
Registered User
 
Join Date: May 2008
Posts: 2
OS: Xp Pro


Java script question form button help.

I ve found this in Javascript.
Ive the intend to change the values with my own subject.Question is how do i get
the button at the bottom to tally up the scores?
How do i get it to work? THANKS
The script is
Code:
<form>
<fieldset>
<legend>英会話のレベルチェック 準中級</legend>
<!--====[Column]====-->

<div class="column" id="pre01">
<h3>1) "How many times have you been to China?" "_____."</h3>
<ul>
<li><input type="radio" name="answer1" value="1" id="a01-1" /><label for="a01-1">One times.</label></li>
<li><input type="radio" name="answer1" value="2" id="a01-2" /><label for="a01-2">Twice.</label></li>
<li><input type="radio" name="answer1" value="3" id="a01-3" /><label for="a01-3">Twice times.</label></li>
<li><input type="radio" name="answer1" value="4" id="a01-4" /><label for="a01-4">Only one.</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre02">
<h3>2) _____ you ever been to Paris?</h3>
<ul>
<li><input type="radio" name="answer2" value="1" id="a02-1" /><label for="a02-1">Did</label></li>

<li><input type="radio" name="answer2" value="2" id="a02-2" /><label for="a02-2">Have</label></li>
<li><input type="radio" name="answer2" value="3" id="a02-3" /><label for="a02-3">Do</label></li>
<li><input type="radio" name="answer2" value="4" id="a02-4" /><label for="a02-4">Has</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre03">
<h3>3) I _____ my sister since last week.</h3>
<ul>
<li><input type="radio" name="answer3" value="1" id="a03-1" /><label for="a03-1">aren't seeing</label></li>
<li><input type="radio" name="answer3" value="2" id="a03-2" /><label for="a03-2">don't see</label></li>
<li><input type="radio" name="answer3" value="3" id="a03-3" /><label for="a03-3">didn't see</label></li>
<li><input type="radio" name="answer3" value="4" id="a03-4" /><label for="a03-4">haven't seen</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre04">
<h3>4) "What about pizza?" "I'd rather ______ a sandwich."</h3>
<ul>
<li><input type="radio" name="answer4" value="1" id="a04-1" /><label for="a04-1">to have</label></li>

<li><input type="radio" name="answer4" value="2" id="a04-2" /><label for="a04-2">have to</label></li>
<li><input type="radio" name="answer4" value="3" id="a04-3" /><label for="a04-3">having</label></li>
<li><input type="radio" name="answer4" value="4" id="a04-4" /><label for="a04-4">have</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre05">
<h3>5) "What are your plans tomorrow?"</h3>
<ul>
<li><input type="radio" name="answer5" value="1" id="a05-1" /><label for="a05-1">" I'm going to the office."</label></li>
<li><input type="radio" name="answer5" value="2" id="a05-2" /><label for="a05-2">" I went to the office."</label></li>
<li><input type="radio" name="answer5" value="3" id="a05-3" /><label for="a05-3">" I go to the office."</label></li>
<li><input type="radio" name="answer5" value="4" id="a05-4" /><label for="a05-4">" I shall going to the office."</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre06">
<h3>6) Choose the correct sentence.</h3>
<ul>
<li><input type="radio" name="answer6" value="1" id="a06-1" /><label for="a06-1">If I were you I will study hard.</label></li>

<li><input type="radio" name="answer6" value="2" id="a06-2" /><label for="a06-2">If I were you I'd study hard.</label></li>
<li><input type="radio" name="answer6" value="3" id="a06-3" /><label for="a06-3">If I am you I'll study hard.</label></li>
<li><input type="radio" name="answer6" value="4" id="a06-4" /><label for="a06-4">I'd study hard if I'll you.</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre07">
<h3>7) Do you _____ to go and see him in the hospital?</h3>
<ul>
<li><input type="radio" name="answer7" value="1" id="a07-1" /><label for="a07-1">must</label></li>
<li><input type="radio" name="answer7" value="2" id="a07-2" /><label for="a07-2">should</label></li>
<li><input type="radio" name="answer7" value="3" id="a07-3" /><label for="a07-3">have</label></li>
<li><input type="radio" name="answer7" value="4" id="a07-4" /><label for="a07-4">will</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre08">
<h3>8) Madonna is the singer _____ sang "Holiday."</h3>
<ul>
<li><input type="radio" name="answer8" value="1" id="a08-1" /><label for="a08-1">who's</label></li>

<li><input type="radio" name="answer8" value="2" id="a08-2" /><label for="a08-2">where</label></li>
<li><input type="radio" name="answer8" value="3" id="a08-3" /><label for="a08-3">whose</label></li>
<li><input type="radio" name="answer8" value="4" id="a08-4" /><label for="a08-4">who</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre09">
<h3>9) I'd prefer one _____ has a handle.</h3>
<ul>
<li><input type="radio" name="answer9" value="1" id="a09-1" /><label for="a09-1">who</label></li>
<li><input type="radio" name="answer9" value="2" id="a09-2" /><label for="a09-2">which</label></li>
<li><input type="radio" name="answer9" value="3" id="a09-3" /><label for="a09-3">witch</label></li>
<li><input type="radio" name="answer9" value="4" id="a09-4" /><label for="a09-4">where</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre10">
<h3>10) Choose the correct sentence.</h3>
<ul>
<li><input type="radio" name="answer10" value="1" id="a10-1" /><label for="a10-1">I've seen just Chris.</label></li>

<li><input type="radio" name="answer10" value="2" id="a10-2" /><label for="a10-2">I've Chris just seen.</label></li>
<li><input type="radio" name="answer10" value="3" id="a10-3" /><label for="a10-3">I just have seen Chris.</label></li>
<li><input type="radio" name="answer10" value="4" id="a10-4" /><label for="a10-4">I've just seen Chris.</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre11">
<h3>11) "What did he say?"</h3>
<ul>
<li><input type="radio" name="answer11" value="1" id="a11-1" /><label for="a11-1">" He me told that he really liked you."</label></li>
<li><input type="radio" name="answer11" value="2" id="a11-2" /><label for="a11-2">" He told me that he really like you."</label></li>
<li><input type="radio" name="answer11" value="3" id="a11-3" /><label for="a11-3">" He told me that he really liked you."</label></li>
<li><input type="radio" name="answer11" value="4" id="a11-4" /><label for="a11-4">" He told me that he has really liked you."</label></li>

</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->
<div class="column" id="pre12">
<h3>12) Don't wait, I _____ late.</h3>
<ul>
<li><input type="radio" name="answer12" value="1" id="a12-1" /><label for="a12-1">can</label></li>

<li><input type="radio" name="answer12" value="2" id="a12-2" /><label for="a12-2">might to be</label></li>
<li><input type="radio" name="answer12" value="3" id="a12-3" /><label for="a12-3">can't be</label></li>
<li><input type="radio" name="answer12" value="4" id="a12-4" /><label for="a12-4">could be</label></li>
</ul>
</div>
<!--====[//Column]====-->
<!--====[Column]====-->

<div class="column" id="pre13">
<h3>13) Well it's nine o'clock, he _____ running late.</h3>
<ul>
<li><input type="radio" name="answer13" value="1" id="a13-1" /><label for="a13-1">could</label></li>
<li><input type="radio" name="answer13" value="2" id="a13-2" /><label for="a13-2">must</label></li>
<li><input type="radio" name="answer13" value="3" id="a13-3" /><label for="a13-3">must be</label></li>
<li><input type="radio" name="answer13" value="4" id="a13-4" /><label for="a13-4">must to be</label></li>

</ul>
</div>
<!--====[//Column]====-->
<input type="button" value="採点する" onclick="checkAnswers()" name="button" />
</fieldset>
</form>
Tusky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 03:31 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82