Could someone tell me why this isn't working? It's not collapsing...
<script language="javascript">
hidden=true;
function dropmen(){
if (hidden){
document.getElementById("thenavbar".className="on";
hidden=false;
}
else{
document.getElementById("thenavbar".className="off";
hidden=true;
}
}
</script>
and then...
<table width="50%">
<tr>
<td>
<div id="wholenavbar" onClick="dropmen()" class="navbar">
<div style="color: white; background-color: gray">Click to view Shady's Links</div>
<div id="thenavbar" class="off">
<a href=" <a href=" <a href=" </div>
</div>
</td>
</tr>
</table>
<script language="javascript">
hidden=true;
function dropmen(){
if (hidden){
document.getElementById("thenavbar".className="on";
hidden=false;
}
else{
document.getElementById("thenavbar".className="off";
hidden=true;
}
}
</script>
and then...
<table width="50%">
<tr>
<td>
<div id="wholenavbar" onClick="dropmen()" class="navbar">
<div style="color: white; background-color: gray">Click to view Shady's Links</div>
<div id="thenavbar" class="off">
<a href=" <a href=" <a href=" </div>
</div>
</td>
</tr>
</table>