Post by Smangii on Jun 26, 2006 11:24:36 GMT -5
--- Old Version Deleted ---
Since a couple of problems arose, I've just made it overall neater and much more understanding to all. Here's the "beta" version of v2.
Crossbrowser: YES
Location: Main Headers/Footers
Main Header:
Main Footer:
Since a couple of problems arose, I've just made it overall neater and much more understanding to all. Here's the "beta" version of v2.
Crossbrowser: YES
Location: Main Headers/Footers
Main Header:
<!-- Click-It PM Bar v2 (Beta) by Smangii
http://smangii.proboards78.com
Main Header Part //-->
<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>
Main Footer:
<script type="text/javascript">
<!--
/* Click-It PM Bar v2 (Beta) by Smangii
http://smangii.proboards78.com
Main Footer Part */
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>