Amanda
Forum Addict
hi
Posts: 251
|
Post by Amanda on Apr 2, 2012 1:12:50 GMT
Global Header - Code by Kenshin - Found on PBS
<script type="text/javascript"> <!--
// Object PM Bar By Kenshin
pbCells = document.getElementsByTagName('TD'); if(pbCells[2].innerHTML.match(/Hey, (.+?), you/i)){ ObjUser = RegExp.$1 }
if(pbCells[2].innerHTML.match(/action=pm">(\d+) messages/i)){ ObjMsg = RegExp.$1 }
if(pbCells[2].innerHTML.match(/, (\d+) (\w+) new./i)){ ObjNew = RegExp.$1 }
pbCells[2].style.display='none'
ObjTable = document.getElementsByTagName('Table')[0].insertRow(1)
ObjCell = ObjTable.insertCell(0) ObjCell.className = 'catbg'
if(pbCells[2].innerHTML.match(/Guest/i)){ ObjCell.innerHTML = '<font class="1">User: Guest «-» <a href="index.cgi?action=login">Login</a> | <a href="index.cgi?action=register">Register</a></font>' }else{
ObjCell.innerHTML = '<font class="1">User: '+ObjUser+' «-» <a href="index.cgi?action=pm">Messages</a>: <b>'+ObjMsg+'</b> New: <b>'+ObjNew+'</b></font>' } //--> </script>
|
|