|
Post by Mike on Feb 5, 2005 17:03:31 GMT -5
THIS CODE IS OBSELETE! DO NOT USE. This code will give staff a custom title:
Footers:
<script language="javascript"> <!-- // Give Gmods/Admins custom titles var TD = document.getElementsByTagName("TD"); function staffCustomTitle(userName,oldTitle,newTitle) if(location.href.match(/=display/i)) for(i=0;i<TD.length;i++) with(TD[i]) if(width=="20%" && innerHTML.match("username="+userName) && className.match(/windowbg/) && vAlign=="top") innerHTML = innerHTML.replace(oldTitle,newTitle); if(location.href.match("=viewprofile&username="+userName)) var TA = document.getElementsByTagName("TABLE") for(i=0;i<TA.length;i++) with(TA[i]) if(width=="100%" && cellPadding=="2" && cellSpacing=="0") rows[2].cells[1].innerHTML = rows[2].cells[1].innerHTML.replace(oldTitle,newTitle); }
staffCustomTitle("username","Original Title","New Title"); staffCustomTitle("admin","Darkness","Coder"); //--> </script>
Repeat the: staffCustomTitle("admin","Darkness","Coder"); As needed.
|
|