thanks for the advice...below is a sample of my html with the javascript. You can see that I have some code commented out because I was trying many different things and none of it worked. I just don't understand why such simple code and logic isn't working.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
function SelectRefTab() {
var RefID1="Body1";
var RefID2="Body2";
//var b1 = document.getElementByID(RefID2);
//b1.style.display = "none"
//var b2 = document.getElementByID(RefID1);
//b2.style.display = "inline"
document.all.RefID2.style.display='none';
document.all.RefID1.style.display="inline";
//alert("Variable Test: " + RefID1 + " And " + RefID2);
}
function SelectRefTab2() {
//var RefID1="Body1";
//var RefID2="Body2";
//var b1 = document.getElementByID(RefID1);
//b1.style.display = "none"
//var b2 = document.getElementByID(RefID2);
//b2.style.display = "inline"
document.all."body1".style.display="none";
document.all."Body2".style.display="inline";
}
</script>
</head>
<body>
<form>
<span onclick="SelectRefTab()" id="T1"> Aaron & Ann </span>
<span onclick="SelectRefTab2()" id="T2"> Tyron Evergreen Baptist Association </span>
<span id="Body1">Mr. Guy Hancock,<br /><br />On June 5-6, 2002 a crew from Guy's A/C inistalled a new Lennox Elite (5 tons) cooling and heating system in our home in Kingwood. The Crew was Steve (lead man), Mike, Mark and a dark haired man, whose name escapes me just now, (Steve called him "the attic rat"), who did all the duct work. Our salesman was John Nieman, and Ralph Conley was there much of the time as well.<br /><br />Kindest Regards,<br />Aaron & Ann<br />Kingwood, TX</span>
<span id="Body2">Dear Mr. Hancock;<br /><br />On behalf of the Preteen Camp Committe of Tryon Evergreen Baptist Associaiton, we would like to give you a tremendously big thank you for your help for obtaining an ice machine. Your kindness is greatly appreciated.<br /><br />Sincerely,<br />Barbara<br />Ministry Assistan</span>
</form>
</body>
</html>
thanks for any help you can provide,
Donrafeal7
|