Post by fredy on Nov 8, 2005 16:12:05 GMT
description:
the newest pm box i use at cheese and crackers and i've hosted the
new/old message icon for you, or you can add your own.
editing is explained at bottom:
<table class=bordercolor><tr><td
class=windowbg>Private message
center</td><td class=windowbg>
<script type="text/JavaScript">
var ttd=document.getElementsByTagName('td');
if(ttd[2].innerHTML.match(/guest/i)){
document.write('login to use this feature')
} else {
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<font color=red><a
href="/index.cgi?action=pm">no new
messages</a></font><img
src="www.sorak.ca/cheeseandcrackers/forumimages/old.jpg">')
} else {
var newMes = (ttd[2].innerHTML.match(/(\d+) are new/))? RegExp.$1 : 1;
document.write('<font color=lime><a
href="/index.cgi?action=pm">you have '+newMes+' new
messages</a></font><img
src="www.sorak.ca/cheeseandcrackers/forumimages/new.jpg">')
}
}
</script>
</td></tr><tr><td class=windowbg2 valign=top>
<a href="/index.cgi?action=pmsend">Send a Pm</a> <br>
<a
href="/index.cgiaction=pm&view=2">Outbox</a><br>
<a href="/index.cgi?action=pmprefs">pm
prefrences</a><br>
<a href="/index.cgi?action=viewprofile">view your
profile</a><br>
<a
href="/index.cgi?action=search2&search=+&match=1&whattosearch=1&user=&checkall=on&board-updates=1&board-mupdates=1&board-contests=1&board-general=1&board-storytime=1&board-opinions=1&board-intro=1&board-guest=1&board-questions=1&board-dl=1&board-html=1&board-rc=1&board-mfth=1&board-wdth=1&board-jukebox=1&board-jt=1&board-requests=1&board-poll=1&board-suggestions=1&board-feedback=1&board-saj=1&board-sas=1&board-board=1&board-afflette=1&board-advertise=1&board-spam=1&board-memory=1&board-rpgintro=1&board-dekara=1&board-di=1&board-dekarasquare=1&board-dmp=1&board-dn=1&board-mangalla=1&board-cov=1&board-oov=1&board-jecarta=1&board-jts=1&board-n=1&board-park=1&board-stonver=1&board-barmapha=1&subject=1&message=1&hours=0&days=50&maxresults=50&viewtype=2">check
for new posts</a>
<br><br>
<b>quick pm</b><br>
<a
href="/index.cgi?action=pmsend&to=admin">admin</a>
</td><td width=250 class=windowbg2 valign=top>
<script type="text/javascript">
var timer = null
function stop()
{
clearTimeout(timer)
}
function start()
{
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
document.getElementById("display").innerHTML = clock
timer = setTimeout("start()",1000)
}
</script>
<body onload="start()" onunload="stop()">
The current time is: <span id="display"></span><br>
The current date is:<script language="JavaScript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("" + lmonth + " ");
document.write(date + ", " + year + "");
// End -->
</script>
</center>
<br><br>
MESSAGE HERE
</td></tr></table>
editing:
the title of your pm center
the url to the image if there are no new messages
the url to the image if there are new messages
the admins display name
the short welcome message that appears below the date and
time
the mesage that appears to guests
the newest pm box i use at cheese and crackers and i've hosted the
new/old message icon for you, or you can add your own.
editing is explained at bottom:
<table class=bordercolor><tr><td
class=windowbg>Private message
center</td><td class=windowbg>
<script type="text/JavaScript">
var ttd=document.getElementsByTagName('td');
if(ttd[2].innerHTML.match(/guest/i)){
document.write('login to use this feature')
} else {
if(ttd[2].innerHTML.match(/0 are new/i)){
document.write('<font color=red><a
href="/index.cgi?action=pm">no new
messages</a></font><img
src="www.sorak.ca/cheeseandcrackers/forumimages/old.jpg">')
} else {
var newMes = (ttd[2].innerHTML.match(/(\d+) are new/))? RegExp.$1 : 1;
document.write('<font color=lime><a
href="/index.cgi?action=pm">you have '+newMes+' new
messages</a></font><img
src="www.sorak.ca/cheeseandcrackers/forumimages/new.jpg">')
}
}
</script>
</td></tr><tr><td class=windowbg2 valign=top>
<a href="/index.cgi?action=pmsend">Send a Pm</a> <br>
<a
href="/index.cgiaction=pm&view=2">Outbox</a><br>
<a href="/index.cgi?action=pmprefs">pm
prefrences</a><br>
<a href="/index.cgi?action=viewprofile">view your
profile</a><br>
<a
href="/index.cgi?action=search2&search=+&match=1&whattosearch=1&user=&checkall=on&board-updates=1&board-mupdates=1&board-contests=1&board-general=1&board-storytime=1&board-opinions=1&board-intro=1&board-guest=1&board-questions=1&board-dl=1&board-html=1&board-rc=1&board-mfth=1&board-wdth=1&board-jukebox=1&board-jt=1&board-requests=1&board-poll=1&board-suggestions=1&board-feedback=1&board-saj=1&board-sas=1&board-board=1&board-afflette=1&board-advertise=1&board-spam=1&board-memory=1&board-rpgintro=1&board-dekara=1&board-di=1&board-dekarasquare=1&board-dmp=1&board-dn=1&board-mangalla=1&board-cov=1&board-oov=1&board-jecarta=1&board-jts=1&board-n=1&board-park=1&board-stonver=1&board-barmapha=1&subject=1&message=1&hours=0&days=50&maxresults=50&viewtype=2">check
for new posts</a>
<br><br>
<b>quick pm</b><br>
<a
href="/index.cgi?action=pmsend&to=admin">admin</a>
</td><td width=250 class=windowbg2 valign=top>
<script type="text/javascript">
var timer = null
function stop()
{
clearTimeout(timer)
}
function start()
{
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
document.getElementById("display").innerHTML = clock
timer = setTimeout("start()",1000)
}
</script>
<body onload="start()" onunload="stop()">
The current time is: <span id="display"></span><br>
The current date is:<script language="JavaScript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("" + lmonth + " ");
document.write(date + ", " + year + "");
// End -->
</script>
</center>
<br><br>
MESSAGE HERE
</td></tr></table>
editing:
the title of your pm center
the url to the image if there are no new messages
the url to the image if there are new messages
the admins display name
the short welcome message that appears below the date and
time
the mesage that appears to guests