Post by fredy on Nov 8, 2005 16:10:45 GMT
this is an old pm box that cheese and crackers used to use.
<script launguage="JavaScript" type="text/JavaScript">
var ttd=document.getElementsByTagName('td');
//edit the messages.
var newPmMessage="You have new private messages.";
var oldPmMessage="You have no new private messages.";
//edit the news
var guestNews=" if you don't feel like registering right away, visit the guest board and meet our members.";
//edit the site name
//do not edit below this line
if(ttd[2].innerHTML.match(/guest/i)){
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Welcome</center></td></tr><tr><td height="50" class="windowbg2"><center>please <a href="/index.cgi?action=login">Log In</a> or <a href="/index.cgi?action=register">Register</a></td></tr><tr><td class="windowbg2" height="100"><center>'+guestNews+'</td></tr></table></tr></td></table>')
} else {
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Private Message Center</center></td></tr><tr><td height="50" class="windowbg2"><center>'+oldPmMessage+'<br /><a href="/index.cgi?action=pm">Check Private Messages</a> <br> <a href="/index.cgi?action=pmsend">Send a Pm</a> <br> <a href="/index.cgiaction=pm&view=2">Outbox</a></td></tr></table></tr></td></table>')
} else {
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Private Message Center</center></td></tr><tr><td class="windowbg2" height="50"><center>'+newPmMessage+'<br /><a href="/index.cgi?action=pm">Check Private Messages</a> <br> <a href="/index.cgi?action=pmsend">Send a Pm</a> <br> <a href="/index.cgiaction=pm&view=2">Outbox</a></td></tr></table></tr></td></table>')
}
}
</script>
<script launguage="JavaScript" type="text/JavaScript">
var ttd=document.getElementsByTagName('td');
//edit the messages.
var newPmMessage="You have new private messages.";
var oldPmMessage="You have no new private messages.";
//edit the news
var guestNews=" if you don't feel like registering right away, visit the guest board and meet our members.";
//edit the site name
//do not edit below this line
if(ttd[2].innerHTML.match(/guest/i)){
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Welcome</center></td></tr><tr><td height="50" class="windowbg2"><center>please <a href="/index.cgi?action=login">Log In</a> or <a href="/index.cgi?action=register">Register</a></td></tr><tr><td class="windowbg2" height="100"><center>'+guestNews+'</td></tr></table></tr></td></table>')
} else {
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Private Message Center</center></td></tr><tr><td height="50" class="windowbg2"><center>'+oldPmMessage+'<br /><a href="/index.cgi?action=pm">Check Private Messages</a> <br> <a href="/index.cgi?action=pmsend">Send a Pm</a> <br> <a href="/index.cgiaction=pm&view=2">Outbox</a></td></tr></table></tr></td></table>')
} else {
document.write('<table align="center" width="200" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="200"><tr><td class="windowbg"><center>Private Message Center</center></td></tr><tr><td class="windowbg2" height="50"><center>'+newPmMessage+'<br /><a href="/index.cgi?action=pm">Check Private Messages</a> <br> <a href="/index.cgi?action=pmsend">Send a Pm</a> <br> <a href="/index.cgiaction=pm&view=2">Outbox</a></td></tr></table></tr></td></table>')
}
}
</script>