|
Post by Smangii on Oct 7, 2010 20:10:52 GMT
Location: Global Headers CrossBrowser: Yes Editing: NONE Repostable: Yes, with header intact Previews: Closed Preview | Open Preview | Live PreviewCode: <!-- Smangii's Click It PM Bar --> <table align="center" class="bordercolor" width="500" cellpadding="4" cellspacing="1"> <tr> <td width="30%" align="center" class="windowbg"> <a href="javascript:void(0);" onClick="document.getElementById('pm_apple').style.display='';">Check PMs ยป</a></td> <td id="pm_apple" align="center" class="windowbg" style="display: none;"> Please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a> </td> </tr> </table>
<script type="text/javascript"> <!-- var tdid = document.getElementsByTagName("td"); var pm_apple= document.getElementById("pm_apple");
if(tdid[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>, (\d+) (are|is) new./i)){ var new_inbox = RegExp.$3; var old_inbox = RegExp.$1; var user_name = pb_displayname; pm_apple.innerHTML = 'Hello '+user_name+'! You have <a href="/index.cgi?action=pm">'+new_inbox+'</a> new and <a href="/index.cgi?action=pm">'+old_inbox+'</a> old PMs'; } // --> </script>
|
|