|
Post by Kenshin on Mar 13, 2005 9:29:22 GMT -8
All Headers: <script type="text/javascript"> <!-- //Oni PM Bar v1.0 //Code Created By Himura //[http://animeuni.net] TD = document.getElementsByTagName('TD') TD[2].style.display="none" TB = document.getElementsByTagName('Table')[0].insertRow(2) InCell = TB.insertCell(-1) InCell.align='center'
if(TD[2].innerHTML.match(/Hey, (.+?), you /i)){ CurName = RegExp.$1 } if(TD[2].innerHTML.match(/0 are new/i)){ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>No New Messages</a>]" }else if(TD[2].innerHTML.match(/1 is new/i)){ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>1 New Message</a>]" }else if(TD[2].innerHTML.match(/Guest/i)){ InCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action='register'>Register</a>]" }else{ InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>You Have New Messages</a>]" } //--> </script>
Image Version coming soon
Last Edit: Mar 20, 2005 9:27:58 GMT -8 by Kenshin
|
|
100%
|
Post by Aaron on Mar 13, 2005 15:45:59 GMT -8
Nice work.
You should have it say the number of pm's though, instead of "You have new messages". Seems more professional. =]
|
|
|
Post by Kenshin on Mar 13, 2005 16:34:07 GMT -8
Well since I basicly just learned Regexp yesterday...I don't know how to do that yet =/
|
|