Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 23rd, 2017, 10:30am


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


member is offline

Avatar




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
http://eldesigns.conforums.com
*/

var td=document.getElementsByTagName("td")
var table=document.getElementsByTagName("table")
var end=table[0].insertRow(2).insertCell(0);
end.className="welcomebg";
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>";
}

document.getElementsByTagName("font")[1].style.display="none";
document.getElementsByTagName("font")[2].style.display="none";

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