Post by ŖЌǾ on Nov 20, 2007 14:56:38 GMT -5
PM Bar Time
Thanks for the help RB
Place: Global Header.
Preview when loged in: This is when ur loged in as a member.
Preview as a guest:
Guest Preview
Thanks for the help RB
Place: Global Header.
Preview when loged in: This is when ur loged in as a member.
Preview as a guest:
Guest Preview
<script type="text/javascript">
<!--
// RKO PM BAR.
// Coded by Roger aka RKO.
// Helped by Reverseblade.
//DO NOT RIP NOR REPOST
var td=document.getElementsByTagName("td");
var pmRow;
if(td[2].innerHTML.match(/Hey, (\w+), you have <.*>(\d+) (messages|message)<.*>, (\d+) (is|are) new./i))
{
var pmTot = RegExp.$2;
var pmNum=RegExp.$4;
}
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;}
today = days[now.getDay()] + ", " +
date + ", " +
months[now.getMonth()] + " " +
(fourdigits(now.getYear()));
if(pmNum == "0"){
msg = "No New Messages";//img for no new pms
}else if(pmNum=="1"){
msg = "One New Message";//img for 1 new pm
}else{
msg = "Several New Messages";//img for multiple new pms
}
if(pb_username == "Guest"){
document.write("<center><table width='92%' border='0' class='bordercolor' cellspacing='1' cellpadding='0'><tr><td class='titlebg' height='20px' width='100%' align='center'><a href='/index.cgi?action=login'>Login</a> Or <a href='/index.cgi?action=register'>Register</a></td></tr></table></center>");
}else{
document.write("<center><table width='92%' border='0' class='bordercolor' cellspacing='1' cellpadding='0'><tr><td class='titlebg' height='20px' width='30%' align='center'><a href='/index.cgi?action=pm'>"+msg+"</a></td><td class='titlebg' height='20px' width='30%' align='center'>Inbox: <a href='/index.cgi?action=pm'>"+pmNum+"/"+pmTot+"</a></td><td class='titlebg' height='20px' width='40%' align='center'>" + today + "</td></tr></table></center>");
}
//-->
</script>