bhuninghake
Programmer
This page ( was originally written in asp gathering the information on each state from sql, but I've redone it so the source code could be viewed. THe following is the java script i'm using and the div tags. Everything works perfectly in IE, but I'm unable to figure out the problem why it won't work in FireFox.
Any help on what I'm missing would be deeply appreciated...
Code:
<script Language="JavaScript">
<!--
var head = "display:''"
function doit( header )
{
var head = header.style
if (head.display=="none")
head.display=""
else
head.display="none"
}
//-->
</script>
<div id="container"><div id="content">
<br />
<h3 onClick="doit(document.all[this.sourceIndex+1])" title="Click here to expand/contract!" style="cursor: hand;">Connecticut</h3>
<p class="borderbottom" style="font-weight: bold; display: none; head;">
Information about the state <br />
Information about the capital</p>
</div></div>
Any help on what I'm missing would be deeply appreciated...