Help - Search - Members - Calendar
Full Version: Folding Menu Script
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
fainaru
I got this script @ peachie.nu right? and it worked fine in mozilla but when i previewed it in ie 5+, it didn't work. the code is below and i've simplified/replaced links and all my body content for easier view

<body>
<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>

Navigation
<font style="cursor:crosshair" onClick="expandit(this)">Codes</font>
<span style="display:none"><br><img src="point.gif" alt=""> <a href="css1.html">General</a><br><img src="point.gif" alt=""> <a href="vcss.html">Valid</a><br><img src="point.gif" alt=""> <a href="cursors.html">Cursors</a><br><img src="point.gif" alt=""> <a href="generator.html">Generator</a><br><img src="point.gif" alt=""> <a href="LINK">Request</a></span><br>
<font style="cursor:crosshair" onClick="expandit(this)">Blinkes</font>
<span style="display:none"><br><img src="point.gif" alt=""><a href="LINK">Blinkies</a><br><img src="point.gif" alt=""> <a href="LINK">Request</a></span>
</span>
</div>
</body>

>.< Thanks.
Heathasm
are you on a mac? i dont think the script works in mac ie
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.