dxxrocks
inherit
-3789278
0
Nov 22, 2024 20:42:26 GMT -8
dxxrocks
0
January 1970
GUEST
|
Post by dxxrocks on Nov 12, 2009 18:10:42 GMT -8
Just a basic PM bar i made as i slowly learned how Live Preview: justintest20.proboards.comImage Preview: jsimages.99k.org/images/pm_bar.JPGCode: <table id="pmbar" class="bordercolor" align="center" width="92%" height="5%" cellpadding="0" cellspacing="1" style="position: relative; bottom: 1px;"> <tr> <td id="Left_Cell" class="menubg" width="100%"> </td> <td class="menubg" width="50%"> </td> </tr> </table>
<script type="text/javascript"> <!--
//Created by Justin //Special thanks to Studio Zero! //don't repost without permission
var Left_Cell=document.getElementById('Left_Cell'); if(pb_username=="Guest"){ Left_Cell.innerHTML='Hello Guest, Please <a href=\"/index.cgi?action=login\">login</a> or <a href=\"/index.cgi?action=register\">Register</a>'; }else if(pb_username!="Guest"){ var Message_Font=document.getElementsByTagName('font').item(2).innerHTML; var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : ''; var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : ''; Left_Cell.innerHTML='Welcome <a href=\"/index.cgi?action=viewprofile\">' + pb_displayname + '</a>, you have<a href=\"/index.cgi?action=pm\"> ' + New_Messages + '</a> new messages'; } document.getElementsByTagName('body').item(0).insertBefore(document.getElementById('pmbar'), document.getElementsByTagName('table').item(0).nextSibling);
//--> </script> Global Headers
|
|