Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Jun 24th, 2017, 08:58am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Pm image  (Read 6275 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2073
xx Pm image
« Thread started 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>
« Last Edit: Aug 19th, 2006, 03:31am by Garet » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls