Post by Ross on Sept 18, 2005 5:06:55 GMT -8
Main Footer
This will make the birthdays and/or the events always show in the info center.
<script type="text/javascript">
<!--
/*
birthdays & calendar always in the info center
by elindir
*/
var eventsImg='http://s1.images.proboards.com/calendar_icon.gif';
var noEvents='No Events this Month';
var showEvents='show';
var bdayImg='http://s1.images.proboards.com/bdaycake.gif';
var noBirthday='No Birthdays Today';
var showBirthday='show';
var tt = document.getElementsByTagName('table');
for(i=0; i<tt.length; i++)
{
if(tt.className == 'bordercolor' && tt[i+2].cellPadding == '3')
{
if(!tt[i+1].innerHTML.match(/Events This Month/) && showEvents=='show')
{
nT = tt[i+1].insertRow(3).insertCell(0); nT.className = 'catbg'; nT.colSpan='2';
nT.innerHTML = '<font size=2><b>Events This Month</b></font>';
nR = tt[i+1].insertRow(4);
iC = nR.insertCell(0); iC.className = 'windowbg'; iC.align='center';
iC.innerHTML = '<img src="'+eventsImg+'" alt="events" />';
mC = nR.insertCell(1); mC.className = 'windowbg';
mC.innerHTML = '<font size=1>'+noEvents+'</font>';
}
if(!tt[i+1].innerHTML.match(/Today\'s Birthdays/) && showBirthday=='show')
{
nT = tt[i+1].insertRow(3).insertCell(0); nT.className = 'catbg'; nT.colSpan='2';
nT.innerHTML = '<font size=2><b>Today\'s Birthdays</b></font>';
nR = tt[i+1].insertRow(4);
iC = nR.insertCell(0); iC.className = 'windowbg'; iC.align='center';
iC.innerHTML = '<img src="'+bdayImg+'" alt="birthdays" />';
mC = nR.insertCell(1); mC.className = 'windowbg';
mC.innerHTML = '<font size=1>'+noBirthday+'</font>';
}
}
}
//-->
</script>
Green: These are the URLs to your birthday or calendar icons.
Blue: The text that will be displayed when there are no events/birthdays
Purple: 'show' will make that section always be visible, otherwise it will only appear when an event/birthday takes place
This will make the birthdays and/or the events always show in the info center.
<script type="text/javascript">
<!--
/*
birthdays & calendar always in the info center
by elindir
*/
var eventsImg='http://s1.images.proboards.com/calendar_icon.gif';
var noEvents='No Events this Month';
var showEvents='show';
var bdayImg='http://s1.images.proboards.com/bdaycake.gif';
var noBirthday='No Birthdays Today';
var showBirthday='show';
var tt = document.getElementsByTagName('table');
for(i=0; i<tt.length; i++)
{
if(tt.className == 'bordercolor' && tt[i+2].cellPadding == '3')
{
if(!tt[i+1].innerHTML.match(/Events This Month/) && showEvents=='show')
{
nT = tt[i+1].insertRow(3).insertCell(0); nT.className = 'catbg'; nT.colSpan='2';
nT.innerHTML = '<font size=2><b>Events This Month</b></font>';
nR = tt[i+1].insertRow(4);
iC = nR.insertCell(0); iC.className = 'windowbg'; iC.align='center';
iC.innerHTML = '<img src="'+eventsImg+'" alt="events" />';
mC = nR.insertCell(1); mC.className = 'windowbg';
mC.innerHTML = '<font size=1>'+noEvents+'</font>';
}
if(!tt[i+1].innerHTML.match(/Today\'s Birthdays/) && showBirthday=='show')
{
nT = tt[i+1].insertRow(3).insertCell(0); nT.className = 'catbg'; nT.colSpan='2';
nT.innerHTML = '<font size=2><b>Today\'s Birthdays</b></font>';
nR = tt[i+1].insertRow(4);
iC = nR.insertCell(0); iC.className = 'windowbg'; iC.align='center';
iC.innerHTML = '<img src="'+bdayImg+'" alt="birthdays" />';
mC = nR.insertCell(1); mC.className = 'windowbg';
mC.innerHTML = '<font size=1>'+noBirthday+'</font>';
}
}
}
//-->
</script>
Green: These are the URLs to your birthday or calendar icons.
Blue: The text that will be displayed when there are no events/birthdays
Purple: 'show' will make that section always be visible, otherwise it will only appear when an event/birthday takes place