Post by Peter on Oct 31, 2004 13:44:44 GMT
Code by Fla5hba5h
Main footer.
This code adds a Description cell to the main page. Also, in the forum name cell, there's only the forum link, and the description and moderators are in the description cell.
you can change these lines if you want to:
(Percentages work best. )
For more info and a preview, go here: www32.brinkster.com/fla5hba5h/webd/scripts/descriptioncell.html
<script>
// Add "Description" cell by Fla5hba5H
// Main Footer
// This code may be used as long as this message is fully intact. This code may not be re-posted without my permission.
// Exceptions:
// http://ssdesigns.proboards17.com, http://fla5hba5h.proboards19.com, http://www.fla5hba5h.tk
var description_width="39%" // width of the Description cell
var boardname_width="27%" // width of the Forum Name cell
var tds=document.getElementsByTagName('td')
for (x=0;x<tds.length;x++) {
if (tds[x].innerHTML.match(/forum name/i)&&tds[x].className=="titlebg"&&tds[x].colSpan=="2") {
tds[x].colSpan="1"
var insertdummycell=tds[x].parentElement.insertCell(0)
insertdummycell.className="titlebg"
insertdummycell.colSpan="1"
insertdummycell.innerHTML='<font class="text1" size="2"><b>Old/New</b></font>'
var insertDesCell=tds[x].parentElement.insertCell(2)
insertDesCell.width=description_width
insertDesCell.className="titlebg"
insertDesCell.colSpan="1"
insertDesCell.innerHTML='<font class="text1" size="2"><b>Description</b></font>'
}
if(tds[x].className=="windowbg2"&&tds[x].width=="66%") {
tds[x].width=boardname_width
var insertDesCell=tds[x].parentElement.insertCell(2)
insertDesCell.innerHTML=tds[x].innerHTML.split(/<br>/i)[1]
insertDesCell.width=description_width
insertDesCell.className="windowbg2"
insertDesCell.align="left"
insertDesCell.colSpan="1"
tds[x].innerHTML=tds[x].innerHTML.split(/<br>/i)[0]
}
if(tds[x].colSpan=="5") tds[x].colSpan="7"
}
</script>
Main footer.
This code adds a Description cell to the main page. Also, in the forum name cell, there's only the forum link, and the description and moderators are in the description cell.
you can change these lines if you want to:
var description_width="39%" // width of the Description cell
var boardname_width="27%" // width of the Forum Name cell
(Percentages work best. )
For more info and a preview, go here: www32.brinkster.com/fla5hba5h/webd/scripts/descriptioncell.html