Amanda
Forum Addict
hi
Posts: 251
|
Post by Amanda on Apr 2, 2012 1:08:39 GMT
Global Headers - Code by Kenshin - Found on PBS
<script type="text/javascript"> <!--
// Oni PM Bar v1.0 By Kenshin
pbCells = document.getElementsByTagName('TD') pbCells[2].style.display="none" ObjTable = document.getElementsByTagName('Table')[0].insertRow(2) ObjCell = ObjTable.insertCell(-1) ObjCell.align='center' ObjCell.className = 'catbg'
if(pbCells[2].innerHTML.match(/Hey, (.+?), you /i)){ ObjUser = RegExp.$1 } if(pbCells[2].innerHTML.match(/0 are new/i)){ ObjCell.innerHTML+="["+ObjUser+"] - [<a href='index.cgi?action=pm'>No New Messages</a>]" }else if(pbCells[2].innerHTML.match(/1 is new/i)){ ObjCell.innerHTML+="["+ObjUser+"] - [<a href='index.cgi?action=pm'>1 New Message</a>]" }else if(pbCells[2].innerHTML.match(/Guest/i)){ ObjCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action=register'>Register</a>]" }else{ ObjCell.innerHTML+="["+ObjUser+"] - [<a href='index.cgi?action=pm'>You Have New Messages</a>]" }
//--> </script>
|
|