Post by Schnooble on Nov 21, 2006 16:41:16 GMT
Global Header
This code Basically does what it says it does.
It makes your welcome table look awesome ^_^.
Its the same code used on here.
Hope you enjoy it.
xXx|DANNY|xXx
This code Basically does what it says it does.
It makes your welcome table look awesome ^_^.
Its the same code used on here.
- Removes 'Hey X you have ...'.
- Removes nav tree.
- Removes Welcome Table border.
- Resizes Welcome Table.
- Adds a Subtitle.
- Adds a real time clock.
- Adds Head/Base images.
- Enables you to check Pm's , Tells you to login or register.
- Removes menu buttons until you login(You can still login or register though).
<script type="text/javascript">
<!--
/*Awesome Welcome Table v2 by Schnooble
This code is © copywright of Schnooble . Inc */
//Edit these variables
var subTitle = "FORUM SUBTITLE"; //board subtitle
var ihead = 'URL OF HEAD IMAGE HERE';
var ibase = 'URL OF BASE IMAGE HERE';
var yourforumName ="FORUM NAME HERE";
//Do not edit
if (ihead != ''){
document.write('<center><img src='+ihead+'></center>');}
function startTime()
{var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)}
function checkTime(i)
{if (i<10)
{i="0" + i}
return i}
//Only edit if you know what you are doing
document.getElementsByTagName('table')[0].width = '700px';
document.getElementsByTagName('td')[2].style.display ="none";
document.getElementsByTagName('font')[1].style.display ="none";
document.getElementsByTagName("table")[0].cellSpacing = "0";
document.getElementsByTagName('font')[0].color ="800000";
document.body.innerHTML.match(/hey, .*, you have <.*>(.*) messages?.*?, (\d+,\d+|\d+) (are|is) new/i)
var totalPms= RegExp.$1
var newPms=RegExp.$2
document.write('<div id="welcome"></div>');
var iWelcome = document.getElementById("welcome");
var iTable = document.getElementsByTagName("table");
iTable[0].width = "100%";
welcome.parentNode.replaceChild(iTable[0], iWelcome);
document.getElementsByTagName("font")[0].innerHTML += "</font><br /><font color=800000 size=-1>"+subTitle;
document.getElementsByTagName("font")[0].innerHTML +="<font size=-1><div id=txt></div></font>";
var tab=document.getElementsByTagName("table");
for(e=0;e<tab.length;e++)
if(tab[e].width=="100%" && tab[e].cellPadding=="0" && tab[e].border=="0" && tab[e].cellSpacing=="0" && tab[e].className=="bordercolor" && tab[e].innerHTML.match(/Schnooble . Inc/)){
var td=tab[e].getElementsByTagName("td");
for(l=0;l<td.length;l++){
if(td[l].className=="welcomebg"){
var tdd=tab[e].getElementsByTagName("td");
for(p=0;p<tdd.length;p++){
if(tdd[p].className=="menubg"){
if(pb_username == 'Guest')
{tdd[p].style.display ="none";}
else
{tdd[p].style.display ="yes";}
if(pb_username == 'Guest')
{td[l].innerHTML+='<font size="1">Welcome to '+yourforumName+' , Please <a href="/index.cgi?action=login">login</a> or <a href+"/index.cgi?action=register">register</a></font>';
} else {td[l].innerHTML+='<font size="1">Welcome back '+pb_displayname+' , you have <a href+"/index.cgi?action=pm">'+totalPms+' Pms</a> , '+newPms+' are new</font>'}
}}}}}
if (ibase != ''){
document.write('<center><img src='+ibase+'></center>');}
//-->
</script>
<body onload=startTime()>
Hope you enjoy it.
xXx|DANNY|xXx