inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Nov 19, 2005 16:31:16 GMT -8
<script type="text/javascript"> <!-- var tr = document.getElementsByTagName('tr'); var opt = document.getElementsByTagName('select').item(document.getElementsByTagName('select').length - 1).options; function hideCat(nam) { if(pb_username == 'Guest') { for(i=0; i<tr.length; i++) { if(tr.cells[0].className == 'catbg' && tr.cells[0].firstChild.name == nam) { while(tr.nextSibling && tr.nextSibling.cells.length == 5) { tr.parentNode.removeChild(tr.nextSibling); } tr.parentNode.removeChild(tr); } } for(i=0; i<opt.length; i++) { if(opt.item(i).value.match(new RegExp('#' + nam + '$'))) { opt.item(i).parentNode.removeChild(opt.item(i)); while(opt.item(i) && !opt.item(i).value.match(/#/)) { opt.item(i).parentNode.removeChild(opt.item(i)); } } } } }
hideCat('Category ID'); hideCat('Category ID'); hideCat('Category ID');
//--> </script>Main Footer, repeat/edit the red lines to hide more categories from guests
|
|