Kenshin
New Member
Hitokiri Battousai
Posts: 17
inherit
53439
0
May 5, 2006 12:04:33 GMT -8
Kenshin
Hitokiri Battousai
17
August 2005
kenshinhim
|
Post by Kenshin on Aug 3, 2005 20:11:52 GMT -8
Global Header:
<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>
Changes: Changed the variable 'object' to 'pbcells' as object caused error - craig - 20th September 2007
|
|