Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: need help !!!!!!!! (navigation issue?)


Message #1 by CORNELIO GALLARDO <corgall@y...> on Thu, 20 Sep 2001 19:46:51 -0700 (PDT)
 any one could help me to run this code in Netscap Lower version... 
remeber the table here is a big issue what i wan is when the sub menu show 
the table height is foldout.
thanks
cornelio
heres my code...
<script language="JavaScript1.2">
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj)
{
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
//-->
</script>
<table border="1" width="200">
<tr>
 <td>
 
 <a href="#" onClick="expandit(this)">Nav 1</a>
 
 <span style="display:none" style=&{head};>
 <table><tr><td>
  Sub nav 1-1<br>
  Sub nav 1-2<br>
  Sub nav 1-3<br>
  Sub nav 1-4<br>
  Sub nav 1-5<br>
 </td></tr></table>  
 </span>
 </td>
 </tr>
 <tr>
 <td>
 <a href="#" onClick="expandit(this)">Nav 2</a>
 <span style="display:none" style=&{head};>
 <table><tr><td>
  Sub nav 21-1<br>
  Sub nav 2-2<br>
  Sub nav 2-3<br>
  Sub nav 2-4<br>
  Sub nav 2-5<br>
 </td></tr></table> 
 </span>
 </td>
 
</tr>
</table>

  Return to Index