New
#1
Help With my HTML Project ;)
Im just learning basic HTML, and this is my first year - and i need some help with my project!! Here is my code so-far: But I left space in between the <script language=JavaScript> and the </script> tags for my variables. Thats really all i dont kno how to do :P
<html>
<head>
<!--MADE BY ME! XXXXXXXXXXXXXXXXXXXXXXXXx...........................................-->
<title>Biology Quiz!</title>
<script language=JavaScript>
</script>
</head>
<body onLoad="alert('Instructions: You Pick a Choice for Your Answer. After You Are Done, Hit the Grade Now! Button, To Restart Simply Hit The Reset Button, There are also Instructions On The Webpage, To View Those, Simply Hit The Button Labled Instructions. Scroll Down Beneath the Picture to View the Quiz Questions And Also Buttons To Help You On Your Way! Good Luck!')">
<center>
<h1> The Bio Quiz Page</h1></center>
<hr width=175>
<center>
<input type="button" value=Instructions onClick="alert('Instructions: You Pick a Choice for Your Answer. After You Are Done, Hit the Grade Now! Button, To Restart Simply Hit The Reset Button, There are also Instructions On The Webpage, To View Those, Simply Hit The Button Labled Instructions. Scroll Down Beneath the Picture to View the Quiz Questions And Also Buttons To Help You On Your Way! Good Luck!')">
<input type="button" onClick="parent.location='#Start'" value="Go to Survey Start"></center>
<center><table border=7 bordercolor=black><td><img src="quiz.jpg"></td></center><tr><td>
<a name="Start"><center><h1> Are you Ready?</h1></center>
</tr></td>
</table>
<td><h1> 1. What are Proteins made up of?</h1></td><tr>
<input type=radio name=one value="A"> A. Hydrogen and Oxygen<br>
<input type=radio name=one value="B"> B. Hydrogen and Nitrogen<br>
<input type=radio name=one value="C"> C. Hydrogen, Oxygen, and Carbon<br>
<input type=radio name=one value="D"> D. Hydrogen, Oxygen, Nitrogen, and Carbon<br>
<input type=textarea name=Q1 size=70>
</tr>
<td><h1> 2. What are Fats/Lipids made up of?</h1></td><tr>
<input type=radio name=two value="A"> A. Carbon<br>
<input type=radio name=two value="B"> B. Hydrogen<br>
<input type=radio name=two value="C"> C. Oxygen<br>
<input type=radio name=two value="D"> D. All of the Above!<br>
<input type=textarea name=Q2 size=70>
</tr>
<td><h1> 3. What are Carbohydrates made up of?</h1></td><tr>
<input type=radio name=three value="A"> A. Carbon<br>
<input type=radio name=three value="B"> B. Oxygen<br>
<input type=radio name=three value="C"> C. Carbon and Oxygen<br>
<input type=radio name=three value="D"> D. Carbon and Nitrogen <br>
<input type=textarea name=Q3 size=70>
</tr>
<td><h1> 4. What are the Four Basic Elements of Life?</h1></td><tr>
<input type=radio name=four value="A"> A. Carbon, Nitrogen, and Hydrogen<br>
<input type=radio name=four value="B"> B. Nitrogen and Carbon<br>
<input type=radio name=four value="C"> C. Oxygen and Hydrogen<br>
<input type=radio name=four value="D"> D. Carbon, Hydrogen, Oxygen, Nitrogen<br>
<input type=textarea name=Q4 size=70>
</tr>
<td><h1> 5. What is the Chemical Formula for the Carboxyl Group?</h1></td><tr>
<input type=radio name=five value="A"> A. NH2<br>
<input type=radio name=five value="B"> B. COOH<br>
<input type=radio name=five value="C"> C. H2O<br>
<input type=radio name=five value="D"> D. CHON<br>
<input type=textarea name=Q5 size=70>
</tr>
<td><h1> 6. What is the type of Bond Water forms with other Water Molecules?</h1><td><tr>
<input type=radio name=six value="A"> A. Ionic Bond<br>
<input type=radio name=six value="B"> B. Hydrogen Bond<br>
<input type=radio name=six value="C"> C. Metallic Bond<br>
<input type=radio name=six value="D"> D. H2O Bond<br>
<input type=textarea name=Q6 size=70>
</tr>
<td><h1> 7. What are Proteins used for in the Human Body?</h1></td><tr>
<input type=radio name=seven value="A"> A. Store Energy<br>
<input type=radio name=seven value="B"> B. No Use<br>
<input type=radio name=seven value="C"> C. Make us Smarter<br>
<input type=radio name=seven value="D"> D.Help us Digest<br>
<input type=textarea name=Q7 size=70>
</tr>
<br>
<center><td><h1> Total Score:</h1>
<input type=textarea name=Ans rows=6>
</center>
</td>
But what i need help with is the variable part... I kno that they go withen the <script language=JavaScript> and </script> tags, but how do i make the variables store all of that info. and make it do those certain things..
Note:
The textboxes underneath each question are to display either - Yes, this is correct, or No, this is not correct. The Text box at the bottom of the page, underneath Total Score, will show the score out of X number of points, and etc. etc. And also, the "test" will only be graded once a "Grade Now" button has been clicked, which i will make once i figure out the variables. So, any help with the variables?
Notex2: This was programmed to work in IE8, which is what my school uses, so, when i opened it in my own laptop at home(im on it now) it's format was different as viewed in my Google Chrome Browser.
Thanks ^^
Last edited by DarkDavil; 28 Oct 2009 at 15:39.