Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 24th, 2018, 08:53am

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
Dynamic Drive

The Staff

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

member is offline


Homepage PM

Gender: Male
Posts: 2070
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.
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")
if(table[z].width=="92%" && table[z].className.match(/bordercolor/) && table[z].align=="center"){
var foot=table[z].insertRow(2).insertCell(0)
if (nonew.outerHTML.indexOf("0 are new") != -1) {
foot.innerHTML="<a href='/index.cgi?action=im'><img src='"+pmno+"' border='0'></a>";
foot.innerHTML="<a href='/index.cgi?action=im'><img src='"+pmyes+"' border='0'></a>";

« 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
| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls