Post by Ross on Aug 4, 2005 17:03:42 GMT -8
Global Footer
This splits the sticky threads from the normal theads and adds a title above each group
Red: Sticky/stickylock image names (if custom)
Blue: Sticky/Normal Thread Title Text
Teal: Height of the bar
Green: Class Names for the bar and the font
<script type="text/javascript">
<!--
/* sticky divider v2.2 by elindir
101support.proboards43.com */
var sticklock="stickylock.gif";
var stick="sticky.gif";
var sticky="Important Threads";
var normal="Normal Topics";
var iheight="10";
var barClass="windowbg2";
var fontClass="cattext";
// Do not edit below
if(document.location.href.match(/board=/))
{
var table=document.getElementsByTagName('table');
for(e=0;e<table.length;e++)
{
if(table[e].cellPadding=='4' && table[e].cellSpacing=='1')
{
var tr=table[e].getElementsByTagName('tr');
for(r=0;r<tr.length;r++)
{
if(tr[r].firstChild.width=='5%' && tr[r].firstChild.className=='windowbg2' && tr[r].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r+1].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r].innerHTML.match(/Announcement:/))
{
var row=table[e].insertRow(r);
row.className=barClass;
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Last Post</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class='cattext'><center><B>Views</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Replies</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Started By</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>"+normal+"</B></center></font>";
row.firstChild.height=iheight
if(tr[r].innerHTML.match(/checkbox/))
{
var col="3";
}
else
{
var col="2";
}
row.insertCell(0).colSpan=col;
var td=table[e].getElementsByTagName('td');
for(l=0;l<td.length;l++){
if(td[l].innerHTML.match(/Subject/) && td[l+1].innerHTML.match(/Started by/) && td[l].className=="catbg"){
td[l].align="center";
td[l].firstChild.firstChild.innerHTML=sticky;
}
}
}
}
}
}
}
//-->
</script>
This splits the sticky threads from the normal theads and adds a title above each group
Red: Sticky/stickylock image names (if custom)
Blue: Sticky/Normal Thread Title Text
Teal: Height of the bar
Green: Class Names for the bar and the font
<script type="text/javascript">
<!--
/* sticky divider v2.2 by elindir
101support.proboards43.com */
var sticklock="stickylock.gif";
var stick="sticky.gif";
var sticky="Important Threads";
var normal="Normal Topics";
var iheight="10";
var barClass="windowbg2";
var fontClass="cattext";
// Do not edit below
if(document.location.href.match(/board=/))
{
var table=document.getElementsByTagName('table');
for(e=0;e<table.length;e++)
{
if(table[e].cellPadding=='4' && table[e].cellSpacing=='1')
{
var tr=table[e].getElementsByTagName('tr');
for(r=0;r<tr.length;r++)
{
if(tr[r].firstChild.width=='5%' && tr[r].firstChild.className=='windowbg2' && tr[r].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r+1].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r].innerHTML.match(/Announcement:/))
{
var row=table[e].insertRow(r);
row.className=barClass;
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Last Post</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class='cattext'><center><B>Views</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Replies</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>Started By</B></center></font>";
row.insertCell(0).innerHTML="<font size='2' class="+fontClass+"><center><B>"+normal+"</B></center></font>";
row.firstChild.height=iheight
if(tr[r].innerHTML.match(/checkbox/))
{
var col="3";
}
else
{
var col="2";
}
row.insertCell(0).colSpan=col;
var td=table[e].getElementsByTagName('td');
for(l=0;l<td.length;l++){
if(td[l].innerHTML.match(/Subject/) && td[l+1].innerHTML.match(/Started by/) && td[l].className=="catbg"){
td[l].align="center";
td[l].firstChild.firstChild.innerHTML=sticky;
}
}
}
}
}
}
}
//-->
</script>