isi333
07-24-2003, 08:00 AM
Hello, I am using this script to create a hidden menu:
<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:do cument.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
//-->
</script>
<li><h6 style="cursor:hand" style="font-size:10pt" onClick="expandit(this)">TEXT BEFORE CLICKED</h6>
<span style="display:none" style=&{head};>
STUFF YOU WANT IN IT GOES HERE!
<br><a href="http://www.peachie.nu" target=_blank> thanks, peachie!</a>
</span>
I have a page that is full of div layers, and I can not get the script to work on it. It simply does not show up. I have tested it on other pages, and it wortks fine, so it is not an error in the script. Does anyone know why it is not working?
View the source code here: http://booklove.bravepages.com/whatever.html
I would be very grateful for any help, thank you!
<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:do cument.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
//-->
</script>
<li><h6 style="cursor:hand" style="font-size:10pt" onClick="expandit(this)">TEXT BEFORE CLICKED</h6>
<span style="display:none" style=&{head};>
STUFF YOU WANT IN IT GOES HERE!
<br><a href="http://www.peachie.nu" target=_blank> thanks, peachie!</a>
</span>
I have a page that is full of div layers, and I can not get the script to work on it. It simply does not show up. I have tested it on other pages, and it wortks fine, so it is not an error in the script. Does anyone know why it is not working?
View the source code here: http://booklove.bravepages.com/whatever.html
I would be very grateful for any help, thank you!