|
Post by Smangii on Oct 9, 2010 2:32:04 GMT
Crossbrowser: YES Location: GLOBAL Headers
GLOBAL Headers:
<!-- Click-It PM Bar v2 (Beta) by Smangii http://forum.smangii.com //-->
<table align="center" class="bordercolor" width="92%" cellpadding="4" cellspacing="1"> <tr> <td align="center" class="titlebg"><a href="javascript:hideshow('myPM')">+/- Messages ยป</a> </td> <td id="myPM" align="center" class="windowbg" height="10px" style="display: none;">Please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a> to use this feature. </td> </tr> </table>
<script type="text/javascript"> <!- function hideshow(id) { if(document.getElementById(id).style.display==""){ document.getElementById(id).style.display="none"; } else { document.getElementById(id).style.display=""; }}
var TD = document.getElementsByTagName("td"); var myPM = document.getElementById("myPM");
if(TD[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>/i)){ myPM.innerHTML = '<div style="float:left">Hi, ' + pb_displayname + '! Your Inbox: <a href="/index.cgi?action=pm">' + RegExp.$3 +' New</a> | ' + RegExp.$1 + ' Old.</div> <div style="float:right">[ <a href="/index.cgi?action=pmsend">Compose</a> ] [ <a href="/index.cgi?action=pmmarkasread">Mark All Read</a> ] [ <a href="/index.cgi?action=pmprefs">Prefs</a> ]</div>'; } // --> </script>
|
|