Post by Isa The Great on Jul 26, 2009 10:33:43 GMT -5
Pm bar
top Global Header:
Top Global Footer
top Global Header:
<script language=javascript>
<!--
var PMLogoCell = document.getElementsByTagName("TD")[1];
PMLogoCell.removeChild(PMLogoCell.lastChild)
-->
</script>
<script type="text/javascript">
<!--
document.getElementsByTagName("td").item(2).style.display = "none";
//-->
</script>
<script type="text/javascript">
<!--
/*
Hi-Tech PM Bar v.1
Created by Naruto
http://hatakeforum.proboards30.com/index.cgi
*/
// First flash color - Darker color than AfterFlash
var BeforeFlash = "#999999";
// Second flash color - Lighter color than BeforeFlash
var AfterFlash = "#DDDDDD";
function Click(pm) {
var Function = document.getElementById(pm);
if (Function.parentNode.style.display=="none") {
Function.parentNode.style.display="";
}
else {
Function.parentNode.style.display="none";
}
}
function flash(name) {
if (name=="flash0") {
document.getElementById("flashtext").style.color=""+BeforeFlash+"";
document.getElementById("flashtext").name="flash1";
}
else {
document.getElementById("flashtext").style.color=""+AfterFlash+"";
document.getElementById("flashtext").name="flash0";
}
setTimeout("flash(document.getElementById('flashtext').name)",500)
}
var td = document.getElementsByTagName("td");
if(td[2].innerHTML.match(/<\/a>,\s(\d+)\s/i)) {
var NewPM = RegExp.$1
}
if(td[2].innerHTML.match(/action=pm">(\d+)\s/i)) {
var TotalPM = RegExp.$1
}
var PMBar = document.getElementsByTagName("table")[0].insertRow(2).insertCell(0);
var PMBar2 = document.getElementsByTagName("table")[0].insertRow(3).insertCell(0);
PMBar.className="windowbg";
PMBar.style.padding="3";
if(td[2].innerHTML.match(/Welcome Guest/i)) {
PMBar.innerHTML="<center><font size='1'>Welcome Guest Please <a href='index.cgi?action=login'>Login</a> or <a href='index.cgi?action=register'>Register</a></font></center>";
}
else if(td[2].innerHTML.match(/, 0 are new./i)) {
PMBar.innerHTML="<center>» <font color='"+BeforeFlash+"' size='1'></font><font size='1'> <a href=javascript:Click(\"pm\");>Check Private Messages</a> - </font><font color='"+BeforeFlash+"' size='1'>No New Messages</font></center>";
}
else if(td[2].innerHTML.match(/, 1 is new./i)) {
PMBar.innerHTML="<center><div id=\"flashtext\" name=\"flash0\"><font size='1'>» <a href=javascript:Click(\"pm\");>Check Private Messages</a> - <font size='1'>You Have "+NewPM+" New Message</font></font></div></center>";
flash(document.getElementById("flashtext").name);
}
else {
PMBar.innerHTML="<center><div id=\"flashtext\" name=\"flash0\"><font size='1'>» <a href=javascript:Click(\"pm\");>Check Private Messages</a> - <font size='1'>You Have "+NewPM+" New Messages</font></font></div></center>";
flash(document.getElementById("flashtext").name);
}
PMBar2.className="windowbg2";
PMBar2.style.padding="3";
PMBar2.id="pm";
PMBar2.parentNode.style.display="none";
PMBar2.innerHTML="<center><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td><font size='1'>Total Private Messages: "+TotalPM+" - New Private Messages: "+NewPM+"</font></td><td align='right'><font size='1'>[ <a href='index.cgi?action=pm'>Inbox</a> ] [ <a href='index.cgi?action=pm&view=2'>Outbox</a> ] [ <a href='index.cgi?action=pmsend'>Send Private Message</a> ] [ <a href='index.cgi?action=pmprefs'>Preferences</a> ]</font></td></tr></table></center>";
//-->
</script>
Top Global Footer
<script type="text/javascript">
<!--
tablew = document.getElementsByTagName('TABLE');
for(t=0;t<tablew.length;t++) {
if(tablew[t].width=="92%"){
tablew[t].width='690';
}
}
// -->
</script>