Post by rooobarbcustard on Aug 15, 2006 12:54:09 GMT -1
hope you dont mind me saying, but these codes might help the look of the board.
and this code would give you a nifty bit for just under your welcome banner
global headers.
just think it would make the boards look even better, hope you dont mind me sayin
Global Header
--------------------------------------------------------------------------------
This will remove the border from the Welcome Table
<script type="text/javascript">
<!--
document.getElementsByTagName('table')[0].cellSpacing = 0;
//-->
</script>
--------------------------------------------------------------------------------
This will remove the Hey X.. you have X messages
<script type="text/javascript">
<!--
document.getElementsByTagName('td').item(2).style.display="none";
//-->
</script>
--------------------------------------------------------------------------------
This will remove « Home » etc.
<script type="text/javascript">
<!--
document.getElementsByTagName('font').item(1).style.display="none";
//-->
</script>
and this code would give you a nifty bit for just under your welcome banner
<script type='text/javascript'>
<!--
/*
////////////
Dynamic Welcome Menu v.1
Coded By Virtuoso
This Code may not be used nor redistributed without permission of the author.
http://zenod.proboards27.com
////////////
*/
//Set Speed.
var speed = "25"
//No More Editting
var gCell = document.getElementsByTagName('td');
var gTable = document.getElementsByTagName('table');
gCell.item(2).style.display = "none";
for(t=0;t<gCell.length;t++)
{
if(gCell[t].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>, (\d+) (are|is) new./i))
{
var gOld = RegExp.$1;
var gNew = RegExp.$3;
}
}
gCell.item(5).style.display = "none";
var cell = gTable[0].insertRow(gTable[0].rows.length).insertCell(0);
cell.innerHTML = '<Table id="ircool" width="100%" align="center" cellpadding="0"><tr><td class="windowbg" align="center" id="virtiscool" onClick="timeIt()" cellpadding = "0"><a>Click to Open/Close Navigation Menu</a></td></tr><tr><td class="windowbg2" id="themenu" height = "1" valign="top" align="left" ><div id="thenavman" style = "display : none" height = "1" ><center><font size="1"><br>Welcome '+pb_displayname+' . Your username is '+pb_username+'. You have a total of <a href ="/index.cgi?action=pm"> '+gOld+' </a> Messages, out of Which <a href="/index.cgi?action=pm">'+gNew+'</a> are New.<hr> <a href="/index.cgi">Home</a> | <a href="http://help.proboards.com/"> Assistance </a> | <a href="index.cgi?action=search">Search</a> | <a href="index.cgi?action=members">Members</a> | <a href= "index.cgi?action=calendar">Calendar</a> | <a href="index.cgi?action=viewprofile">Profile</a> | <a href="index.cgi?action=logout"> Logout </a></font></center></div></td></tr></table>';
var crazy = document.getElementById("themenu");
var greg = document.getElementById("virtiscool");
var virtuoso = document.getElementById('thenavman');
if(pb_username == "Guest"){
virtuoso.innerHTML = '<center><font size="1"><br>Welcome Guest. Please <a href="index.cgi?action=login>Login</a> or <a href="index.cgi?action=register"> Register </a> to activate this feature. Thank you, and enjoy your stay!<hr> <a href="/index.cgi">Home</a> | <a href="http://help.proboards.com/"> Assistance </a> | <a href="index.cgi?action=search">Search</a> | <a href="index.cgi?action=login"> Login | <a href="index.cgi?action=register">Register</a> </font></center>'
}
if(pb_username == "admin"){
virtuoso.innerHTML = '<center><font size="1"><br>Welcome '+pb_displayname+' . Your username is '+pb_username+'. You have a total of <a href ="/index.cgi?action=pm"> '+gOld+' </a> Messages, out of Which <a href="/index.cgi?action=pm">'+gNew+'</a> are New.<hr> <a href="/index.cgi">Home</a> | <a href="http://help.proboards.com/"> Assistance </a> | <a href="index.cgi?action=search">Search</a> | <a href="index.cgi?action=members">Members</a> | <a href= "index.cgi?action=calendar">Calendar</a> | <a href="index.cgi?action=viewprofile">Profile</a> | <a href="index.cgi?action=logout"> Logout </a> | <a href="index.cgi?action=admin"> Admin</a></font></center>'
}
greg.onmouseover = function() {
this.style.cursor = "pointer";
}
greg.onmouseout = function() {
this.style.cursor = "";
}
greg.style.padding = '0px 0px 0px 0px';
crazy.style.padding = '0px 0px 0px 0px';
function timeIt() {
if(crazy.style.display == "none" || crazy.height == "1" ){
crazy.height = "1";
navOpen();
} else if(crazy.style.display == "") {
navClose();
}
}
function navOpen(){
if(crazy.height < 60){
crazy.height = Math.floor(crazy.height) + 6;
setTimeout('navOpen()', speed);
} else {
crazy.style.display = "";
virtuoso.style.display = "";
}
}
function navClose(){
if(crazy.height > 1){
crazy.height = Math.floor(crazy.height) - 6;
setTimeout('navClose()', speed);
virtuoso.style.display = "none";
} else {
crazy.height = "1";
}
}
//-->
</script>
global headers.
just think it would make the boards look even better, hope you dont mind me sayin