Post by acoolie530 on Apr 30, 2005 19:12:49 GMT
Name: ACoolie Board Modification v3
Compatibility: Firefox/IE
Placement: Main Footer
Preview: Linky
Edit: Optional Cell highlights for last post and main cell
Features: Topic Cell and on/off cell removed. Everything is backwards. On/off cell added to main board cell. Look at the preview for more details
Notes: Was for a battle with Crazy J. I plan to make it v4 compatibile when i can and then i will also release a version for topics and fix the way the navigation bar looks (folders are to left of link but the links are aligned to the right)
I optimized this with DOM for firefox users. The functions i used dont work in Internet Explorer... So, i combined them so it runs one version if Internet Explorer and a better version for everything else
Compatibility: Firefox/IE
Placement: Main Footer
Preview: Linky
Edit: Optional Cell highlights for last post and main cell
Features: Topic Cell and on/off cell removed. Everything is backwards. On/off cell added to main board cell. Look at the preview for more details
Notes: Was for a battle with Crazy J. I plan to make it v4 compatibile when i can and then i will also release a version for topics and fix the way the navigation bar looks (folders are to left of link but the links are aligned to the right)
<script>
//Acoolie board modification v3. Do not remove this header
var maincellhigh = "yes"
var lastcellhigh = "yes"
var cellhigh = "555555"
var iCell = document.getElementsByTagName("td")
for (var d = 11;d < iCell.length;d ++) {
if (iCell.item(d).width == "66%" && iCell.item(d).className == "windowbg2" && iCell.item(d).align == "left"){
iCell.item(d - 1).style.display = "none"
iCell.item(d + 1).style.display = "none"
iCell.item(d).getElementsByTagName('i')[0].innerHTML = iCell.item(d).getElementsByTagName('i')[0].innerHTML.replace(/Moderators: none/i,"")
var brak = (iCell.item(d).getElementsByTagName('i')[0].innerHTML == "") ? "" : "("+iCell.item(d).getElementsByTagName('i')[0].innerHTML+")"
if(navigator.appName.match(/Microsoft/i)){
var main = "<table width='100%' height='32' cellpadding='0' cellspacing='0' border='0'><tr><td valign='middle' align='left'><font size='1'>"+iCell.item(d).innerHTML.split(/<br\/?>(.+?)>/i)[1]+"</font></td><td valign='middle' align='right' width='34%' style='padding-right: 5px;'>"+brak+"&nb"+"sp"+iCell.item(d).innerHTML.split(/<br\/?/i)[0]+"&nb"+"sp &nb"+"sp</td><td valign='middle' width='4%'>"+iCell.item(d-1).innerHTML+"</td></tr></table>"
var las = iCell.item(d+3).innerHTML
iCell.item(d + 3).innerHTML = main
iCell.item(d).innerHTML = las
iCell.item(d).width = "24%"
} else {
var sTab = document.createElement("table")
var sRow = document.createElement("tr")
var sCell = document.createElement("td")
var aCell = document.createElement("td")
var oCell = document.createElement("td")
oCell.vAlign = "middle"
oCell.width = "4%"
oCell.innerHTML = iCell.item(d - 1).innerHTML
sCell.vAlign = "middle"
sCell.align = "left"
sCell.innerHTML = iCell.item(d).innerHTML.split(/<br\/?>(.+?)>/i)[2]
aCell.vAlign = "middle"
aCell.align = "right"
aCell.width = "34%"
aCell.innerHTML = brak+"&nb"+"sp"+iCell.item(d).innerHTML.split(/<br\/?/i)[0]+"&nb"+"sp &nb"+"sp"
sRow.appendChild(sCell)
sRow.appendChild(aCell)
sRow.appendChild(oCell)
sTab.width = "100%"
sTab.height = "32"
sTab.cellpadding = "0"
sTab.cellspacing = "0"
sTab.border = "0"
sTab.appendChild(sRow)
var las = iCell.item(d+3).innerHTML
iCell.item(d + 3).innerHTML = ""
iCell.item(d + 3).appendChild(sTab)
iCell.item(d).innerHTML = las
iCell.item(d).width = "24%"
}
if(lastcellhigh == "yes"){
iCell.item(d).onmouseover = function (){this.style.backgroundColor = cellhigh;window.status = "Click to view "+this.getElementsByTagName("a")[0].innerHTML+"'s profile";this.style.cursor = (navigator.appName.match(/microsoft/i))? "hand" : "pointer";}
iCell.item(d).onmouseout = function (){this.style.cursor = "";window.status = "";this.style.backgroundColor = "";}
iCell.item(d).onclick = function (){location.href = this.getElementsByTagName("a")[0].href;}
}
if(maincellhigh == "yes"){
iCell.item(d + 3).onmouseover = function (){this.style.backgroundColor = cellhigh;window.status = this.getElementsByTagName("b")[0].innerHTML;this.style.cursor = (navigator.appName.match(/microsoft/i))? "hand" : "pointer";}
iCell.item(d + 3).onmouseout = function (){this.style.cursor = "";window.status = "";this.style.backgroundColor = "";}
iCell.item(d + 3).onclick = function (){location.href = this.getElementsByTagName("b")[0].parentNode.href;}
}
}
}
for (var h = 0;h < iCell.length;h ++) {
if (iCell.item(h).className == "catbg" && iCell.item(h).height == "18") {
if(iCell.item(h).getElementsByTagName("a")[0].href.match(/=markallboardsread/i)){
iCell.item(h).align = "left"
} else {
iCell.item(h).align = "right"
}
}
}
var sCell = document.createElement("td")
var sText = document.createTextNode("Last Post")
var sFont = document.createElement("font")
sFont.size = '2'
sFont.className = 'text1'
sFont.style.fontweight = 'bold'
sFont.appendChild(sText)
sCell.width = "24%"
sCell.className = "titlebg"
sCell.align = "center"
sCell.appendChild(sFont)
var aCell = document.createElement("td")
var aText = document.createTextNode("Posts")
var aFont = document.createElement("font")
aFont.size = '2'
aFont.className = 'text1'
aFont.style.fontweight = 'bold'
aFont.appendChild(aText)
aCell.width = "1%"
aCell.className = "titlebg"
aCell.align = "center"
aCell.appendChild(aFont)
var wCell = document.createElement("td")
var wText = document.createTextNode("Forum Name")
var wFont = document.createElement("font")
wFont.size = '2'
wFont.className = 'text1'
wFont.style.fontweight = 'bold'
wFont.appendChild(wText)
wCell.width = "66%"
wCell.className = "titlebg"
wCell.align = "right"
wCell.appendChild(wFont)
for (var x = 0;x < iCell.length;x ++) {
if (iCell.item(x).className == "titlebg" && iCell.item(x).innerHTML.match(/Forum Name/i) && iCell.item(x + 1).innerHTML.match(/Topics/i)) {
iCell.item(x).style.display="none"
iCell.item(x + 1).style.display="none"
iCell.item(x + 2).style.display="none"
iCell.item(x + 3).style.display="none"
iCell.item(x).parentNode.appendChild(sCell)
iCell.item(x).parentNode.appendChild(aCell)
iCell.item(x).parentNode.appendChild(wCell)
}
}
</script>
I optimized this with DOM for firefox users. The functions i used dont work in Internet Explorer... So, i combined them so it runs one version if Internet Explorer and a better version for everything else