J.A.Rank wrote:
Hello all.
(snip)
Any suggestions are welcome.
OK. Had another whack at it. Still too lazy to do the ordered list.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="parentEdStyles.css" type="text/css">
<style type="text/css">
#Content {
border: 1px #000 solid;
padding: 10px 0;
background: #680000;
}
..answer {
display: none;
width: 90%;
font: normal 12px tahoma;
color: #fff;
padding: 5px;
margin: 2px;
border: 1px #fff solid;
background: #600;
}
..answer ol {
margin: 0;
}
..answer h5 {
font-size: 11px;
margin: 0 0 5px 0;
}
td {
vertical-align: top;
padding: 8px;
}
td.rtalign {
text-align: right;
vertical-align: top;
font-weight: 800;
}
input.sub {
font: normal 14px tahoma;
color: #fff;
margin-top: 24px;
background: #75202f;
}
</style>
<script type="text/javascript">
/***********************************************/
var answers =
{
a1:
"<ol><li>Recognize: acknowledge the problem." +
"<li>Resist: resolve to take contrary action." +
"<li>Report: inform the appropriate authorities.</ol>"
,a2:
"Contrary to much popular belief, the person " +
"most likely to commit child abuse is a trusted " +
"member of the child's immediate family, " +
"or a friend or relative."
,a3:
"An abuser's fear of exposure is a powerful deterrent."
,a4:
"....something here...."
,a5:
"....something here...."
,a6:
"....something here...."
,a7:
"....something here...."
,a8:
"....something here...."
,a9:
"....something here...."
,a10:
"....something here...."
}
/***********************************************/
function getRadioValue(grp)
{
var i = grp.length;
do
if (grp[--i].checked)
return grp[i].value;
while (i);
return null;
}
function grade(els)
{
var grp, val, msg, abox, n = 1;
while (grp = els['q' + n])
{
val = getRadioValue(grp);
if (val == 'c')
msg = '<h5>Correct.</h5>' + answers['a' + n];
else if (!val)
msg = 'You did not answer the question.';
else msg = '<h5>Incorrect.</h5>' + answers['a' + n];
if (abox = document.getElementById('a' + n))
{
abox.innerHTML = msg;
abox.style.display = 'block';
}
n++;
}
grade.s = setInterval('window.scrollBy(-30,-30)', 20);
setTimeout('clearInterval(grade.s)', 1000);
return false;
}
</script>
</head>
<body>
<div id="Menu">
<a class="nav" href="index.html">home</a><br>
<a class="nav" href="p2.html">introduction</a><br>
<a class="nav" href="obj.html">objectives</a><br>
<a class="nav" href="def.html">definition</a><br>
<a class="nav" href="kinds.html">four kinds of abuse</a><br>
<a class="nav" href="signs.html">signs of abuse</a><br>
<a class="nav" href="phys.html">physical abuse</a><br>
<div style="text-align: center;">
<a class="nav" href="obs_phys.html">observable signs</a>
</div>
<div style="text-align: center;">
<a class="nav" href="behav_phys.html">behavioral signs</a>
</div>
<a class="nav" href="neg.html">neglect</a><br>
<div style="text-align: center;">
<a class="nav" href="obs_neg.html">observable signs</a><br>
</div>
<div style="text-align: center;">
<a class="nav" href="behav_neg.html">behavioral signs</a>
</div>
<a class="nav" href="sex.html">sexual abuse</a><br>
<div style="text-align: center;">
<a class="nav" href="signs_sex.html">observable signs</a><br>
</div>
<div style="text-align: center;">
<a class="nav" href="behav_sex.html">behavioral signs</a>
</div>
<a class="nav" href="emo.html">emotional abuse</a><br>
<div style="text-align: center;">
<a class="nav" href="signs_emo.html">behavioral signs</a>
</div>
<a class="nav" href="rep1.html">reporting</a><br>
<a class="nav" href="pro.html">protecting</a><br>
<a class="nav" href="3rs.html">the three R's</a><br>
<a class="nav" href="teach3rs.html">teaching three R's</a><br>
<a class="nav" href="rec.html">recognize</a><br>
<a class="nav" href="res.html">resist</a><br>
<a class="nav" href="rep.html">report</a><br>
<a class="nav" href="rules.html">basic rules 1</a><br>
<a class="nav" href="rules2.html">basic rules 2</a><br>
<a class="nav" href="law.html">the law</a><br>
<a class="nav" href="concl.html">conclusion</a><br>
<a class="nav" href="creds.html">credits</a><br>
<a class="nav" href="test.html">self test</a><br>
</div>
<div id="Content">
<!-- content -->
<form name="selfTest" action="js_disabled.php" method="post"
onsubmit="return grade(this.elements)">
<table width="100%" cellspacing="0">
<tr>
<td class="rtalign" width="10%">1.</td>
<td width="50%" height="100%">
What are the 3 R's of child abuse prevention?
<div id="a1" class="answer"></div>
</td>
<td width="40%">
<input id="q1a" name="q1" type="radio" value="i">
<label for="q1a">relax, relegate, and regret</label><br>
<input id="q1b" name="q1" type="radio" value="i">
<label for="q1b">retreat, regroup, and revenge</label><br>
<input id="q1c" name="q1" type="radio" value="c">
<label for="q1c">recognize, resist, and report</label><br>
<input id="q1d" name="q1" type="radio" value="i">
<label for="q1d">review, reveal, and relief</label>
</td>
</tr><tr>
<td class="rtalign">2.</td>
<td>
Child Abuse is most often committed by a family member or someone
who is known to the child.
<div id="a2" class="answer"></div>
</td>
<td>
<input id="q2a" name="q2" type="radio" name="q2" value="c"><label
for="q2a">true</label>
<input id="q2b" name="q2" type="radio" name="q2" value="i"><label
for="q2b">false</label>
</td>
</tr><tr>
<td class="rtalign">3.</td>
<td>
The best thing for any child to say to a person who is touching
them or talking to them in a wrong way is:
<div id="a3" class="answer"></div>
</td>
<td>
<input id="q3a" name="q3" type="radio" value="i"><label for="q3a">What
are you doing?</label><br>
<input id="q3b" name="q3" type="radio" value="i"><label
for="q3b">Please cut that
out.</label><br>
<input id="q3c" name="q3" type="radio" value="c"><label for="q3c">STOP!
I'M TELLING!</label><br>
</td>
</tr><tr>
<td class="rtalign">4.</td>
<td>
Children may be afraid to tell about abuse because they may think
they are to blame.
<div id="a4" class="answer"></div>
</td>
<td>
<input id="q4a" name="q4" type="radio" value="c"><label
for="q4a">true</label>
<input id="q4b" name="q4" type="radio" value="i"><label
for="q4b">false</label>
</td>
</tr><tr>
<td class="rtalign">5.</td>
<td>
Abusers are easy to spot.They are poor and look frightening.
<div id="a5" class="answer"></div>
</td>
<td>
<input id="q5a" name="q5" type="radio" value="i"><label
for="q5a">true</label>
<input id="q5b" name="q5" type="radio" value="c"><label
for="q5b">false</label>
</td>
</tr><tr>
<td class="rtalign">6.</td>
<td>
Children have the right to:
<div id="a6" class="answer"></div>
</td>
<td>
<input id="q6a" name="q6" type="radio" value="c"><label
for="q6a">refuse certain kinds of
contact</label><br>
<input id="q6b" name="q6" type="radio" value="i"><label
for="q6b">refuse any and all
contact</label><br>
<input id="q6c" name="q6" type="radio" value="i"><label
for="q6c">reject uncomfortable
authority</label><br>
<input id="q6d" name="q6" type="radio" value="i"><label
for="q6d">refuse guidance from
parents</label>
</td>
</tr><tr>
<td class="rtalign">7.</td>
<td>
Talking about protection from child abusers is the job of school
teachers, not the job of parents.
<div id="a7" class="answer"></div>
</td>
<td>
<input id="q7a" name="q7" type="radio" value="i"><label
for="q7a">true</label>
<input id="q7b" name="q7" type="radio" value="c"><label
for="q7b">false</label>
</td>
</tr><tr>
<td class="rtalign">8.</td>
<td>
Select the rule that was NOT listed in the basic safety rules for
children.
<div id="a8" class="answer"></div>
</td>
<td>
<input id="q8a" name="q8" type="radio" value="i"><label for="q8a">Never
hitchhike.</label><br>
<input id="q8b" name="q8" type="radio" value="i"><label
for="q8b">Always use the buddy
system.</label><br>
<input id="q8c" name="q8" type="radio" value="c"><label for="q8c">5
year-olds are in no
danger.</label>
</td>
</tr><tr>
<td class="rtalign">9.</td>
<td>
If I believe that my child is being abused I can call
<div id="a9" class="answer"></div>
</td>
<td>
<input id="q9a" name="q9" type="radio" value="i"><label for="q9a">my
child's friends</label><br>
<input id="q9b" name="q9" type="radio" value="i"><label for="q9b">the
suspected
abuser</label><br>
<input id="q9c" name="q9" type="radio" value="c"><label for="q9c">Child
Protective
Services</label><br>
<input id="q9d" name="q9" type="radio" value="c"><label for="q9d">the
police</label>
</td>
</tr><tr>
<td class="rtalign">10.</td>
<td>
All citizens in Texas are required by law to report child abuse.
<div id="a10" class="answer"></div>
</td>
<td>
<input id="q10a" name="q10" type="radio" value="c"><label
for="q10a">true</label>
<input id="q10b" name="q10" type="radio" value="i"><label
for="q10b">false</label>
</td>
</tr><tr>
<td colspan="3" style="text-align:center;">
<input class="sub" type="submit" value="Get answers"
onmouseover="this.style.background='#900'"
onmouseout="this.style.background='#75202f'">
</td>
</tr>
</table>
</form>
<!-- /content -->
</div>
<div class="next"><a class="continue"
href="./index.html">home</a></div>
</body>
</html>
Be sure to back this up at the server with remote grading.