Conforums Support
Board Enhancements >> Hacks >> Pm image
http://support.conforums.com/index.cgi?board=code&action=display&num=1155976262

Pm image
Post by Garet on Aug 19th, 2006, 03:31am

With this code you will be able to have a different pm bar. It creates a bar (right after the nav bar), which holds an image, when you get a new pm, the image will change, when you have no new pm's the image will change once again.
Footers
Edit Red

Code submitted by zando


<script type="text/javascript">
<!--

var pmyes="NEW PM IMG URL";
var pmno="NO NEW PM IMG URL";
var nonew=document.getElementsByTagName("table")[0]
if (nonew.outerHTML.indexOf("Guest") == -1) {
var table=document.getElementsByTagName("table")
for(z=0;z<table.length;z++){
if(table[z].width=="92%" && table[z].className.match(/bordercolor/) && table[z].align=="center"){
var foot=table[z].insertRow(2).insertCell(0)
foot.align="center";foot.className="titlebg";
if (nonew.outerHTML.indexOf("0 are new") != -1) {
foot.innerHTML="<a href='/index.cgi?action=im'><img src='"+pmno+"' border='0'></a>";
}else{
foot.innerHTML="<a href='/index.cgi?action=im'><img src='"+pmyes+"' border='0'></a>";
}}}}

document.getElementsByTagName("font")[2].style.display="none";
//-->
</script>