Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 27, 2004 11:39:08 GMT
<script type="text/javascript"> <!-- /* Created by Peter
This code cannot be reposted (independently or with other scripts) at anywhere other than SSDesigns, without express permission from its creator. This header must stay intact at all times.
ssdesigns.proboards17.com */
//add additional usernames here var Admins = [] Admins[0] = ["admin"]
var TD = document.getElementsByTagName("TD")
for(b=0;b<Admins.length;b++){ if(TD[5].innerHTML.match("username="+Admins)){ var Staff="y" } else { Staff="n"; PreventIt() } }
function PreventIt(){ var table = document.getElementsByTagName("Table"); for(t=0;t<table.length;t++){ for(r=0;r<table[t].rows.length;r++){ for(c=0;c<table[t].rows[r].cells.length;c++){ if(table[t].width=="100%" && Staff=="n" && table[t].cellPadding=="4" && table[t].rows[r].cells[c].innerHTML.match(/Posts/i) && table[t].rows[r].cells[c].innerHTML.match("username=" + Admins)){ var ModifyDat = table[t].rows[r].cells[c+1] var A = ModifyDat.getElementsByTagName("A"); for(m=0;m<A.length;m++){ if(A[m].href.indexOf("=modify")!=-1){ A[m].href="javascript: alert('The modifying of this post is prohibited.')" } } } } } } }
//--> </script> Board Footers
|
|