inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Oct 4, 2005 18:43:39 GMT -8
Code description: Anyone who is not a staff, will not be able to delete their own posts.
Global Footers: <script type='text/javascript'> /* Hide 'delete' button from none staff members created by CrAzY_J do not redistribute this code without the creator's permission*/
if( this.location.href.match(/display&/) ) { var StaffCheck = false; var Admin = /Admin\sFunctions:\s/; var Delete = /deletepost&thread=/; var TD = document.body.getElementsByTagName('td'); for( var t = TD.length-1 ; t > 0 ; t -- ) { if( TD[t].colSpan == '2' && TD[t].vAlign == 'middle' && TD[t].align == 'left' && Admin.test( TD[t].firstChild.innerHTML ) ) StaffCheck = true; if( !StaffCheck && TD[t].width == '40%' && TD[t].vAlign == 'bottom' && TD[t].align == 'right' && Delete.test( TD[t].firstChild.lastChild)) TD[t].firstChild.lastChild.style.display = 'none'; } } </script>
|
|