Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 29, 2004 11:55:08 GMT
Code created by Webworldx[/color]
Click the category names to expand.
<script> //Created by Webworldx //SSDesigns Exclusive - this code may not be reposted on any other site without express permission from the creator //This header must stay intact at all times
function showBoards(objectname){ tCat = document.getElementsByTagName('TD'); for (i=0;i<tCat.length;i++){ if (tCat[i].innerText==objectname){ var endMe=0 for (p=i+1;p<tCat.length;p++){ if (endMe==0){ if (tCat[p].className=="catbg"){ endMe=1} else { tCat[p].style.display="" }}}}}}
if (location.href.indexOf("action=") != -1) { } else { tCat = document.getElementsByTagName('TD'); for (i=0;i<tCat.length;i++){ if (tCat[i].className=="catbg" && tCat[i].colSpan=="5" && tCat[i].align!="right"){ var inputme=tCat[i].innerText tCat[i].innerHTML='<a href=\'javascript:showBoards("' + inputme + '")\'>' + tCat[i].innerText + '</a>' var endMe=0 for (p=i+1;p<tCat.length;p++){ if (endMe==0){ if (tCat[p].className=="catbg"){ endMe=1} else { tCat[p].style.display="none" }}}}}} </script>
|
|