Post by Smangii on May 21, 2006 6:34:47 GMT -5
Wee...in a coding mood ;D
Location: Global Headers
CrossBrowser: Yes
Editing: NONE
Repostable: Yes, with header intact
Previews: Closed Preview | Open Preview | Live Preview
Code:
Location: Global Headers
CrossBrowser: Yes
Editing: NONE
Repostable: Yes, with header intact
Previews: Closed Preview | Open Preview | Live Preview
Code:
<div id="PM_BAR">
<!-- Smangii's Clik-It PM Bar
http://smangii.proboards78.com
May be reposted as long as this header remains intact
No editing required -->
<table align="center" class="bordercolor" width="450" cellpadding="5" cellspacing="1">
<tr>
<td width="30%" align="center" height="25" class="windowbg">
<a href="javascript:void(0);" onClick="document.getElementById('pm_apple').style.display='';">Check PMs ยป</a></td>
<td id="pm_apple" align="center" border="1" class="windowbg" height="25" 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>
</div>
<script type="text/javascript">
<!--
document.getElementsByTagName("td")[1].parentNode.insertBefore(
if(td[i].className=="titlebg" && td[i].innerHTML.match(/Forum Name/i))
{
document.getElementById("PM_BAR"),
document.getElementsByTagName("td")[1].nextSibling);
// -->
</script>