Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 18th, 2018, 04:43am

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: Welcome table customization  (Read 5847 times)
Conforums Elite
Senior Member

member is offline


Homepage PM

Gender: Male
Posts: 2070
xx Welcome table customization
« Thread started on: Aug 19th, 2006, 04:01am »

Well, this pretty much does exactly the same thing as the current welcome table on this forum. Except it is my version, and this one is shorter.

Global Headers
Cross Browser: IE, FF, Netscape and Opera

Submitted by Zando

<script type="text/javascript">

Welcome Table Customiztion
Coded By Zando

var td=document.getElementsByTagName("td")
var table=document.getElementsByTagName("table")
var end=table[0].insertRow(2).insertCell(0);
if(table[0].innerHTML.match(/Welcome Guest. Please/)){
end.innerHTML="<table border='0' width='100%'><tr><td align='left' width='50%'>Welcome Guest.</td><td align='right' width='50%'>Please <a href='/index.cgi?action=login'>Login</a> or <a href='/index.cgi?action=register'>Register</a> to view your Inbox.</td></tr></table>";
} else {
if(table[0].innerHTML.match(/Hey, (\D+), you have/)){
var user=RegExp.$1;
if(table[0].innerHTML.match(/(\d+) (is|are) new./)){
var pm2=RegExp.$1;
if(table[0].innerHTML.match(/(\d+) messages/)){
var pm=RegExp.$1;
end.innerHTML="<table border='0' width='100%'><tr><td align='left' width='50%'>Welcome Back "+user+"</td><td align='right' width='50%'>You have a total of <a href='/index.cgi?action=im'>"+pm+" Private Messages</a>, "+pm2+" are new.</td></tr></table>";


« Last Edit: Sep 21st, 2006, 3:42pm 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