Post by Schubaltz on Jul 2, 2007 21:55:19 GMT -5
Description: Places sticky threads in a separate table.
Source: Open
Cross-browser: Yes
Global Footer
<script type="text/javascript">
<!--
// Sticky Splitter
var split = [ ], mrgn = "24px", // splitter margin
img = [ "sticky.gif", "stickylock.gif" ]; // sticky and stickylock images
if(location.href.match(/board=[^&]+(&page=\d+)?$/))
for(var l = document.links, k = 4; k < l.length; k ++) if(l[k].className == "nav") {
var t = l[k].parentNode.getElementsByTagName("table");
t = t[t[1].rows[0].cells.length == 1 ? 1 : 3];
for(var i = t.rows, x = 2; x < i.length; x ++) {
if(!i[x].cells[0].hasChildNodes() || i[x].getElementsByTagName("img")[0].src.match(new RegExp(img.join("|") + "$"))) {
split.push(i[x].cloneNode(true));
i[x].style.display = "none";
} else {
break;
}
if(split.length) {
split.splice(0, 0, i[1].cloneNode(true));
var con = t.cloneNode(false);
con.style.marginBottom = mrgn;
con.appendChild(document.createElement("tbody"));
for(var x in split)
con.firstChild.appendChild(split[x]);
t.parentNode.parentNode.parentNode.parentNode.style.backgroundColor = "transparent";
t.className = "bordercolor";
con.className = "bordercolor";
t.parentNode.insertBefore(con, t);
}
break;
}
//-->
</script>
Source: Open
Cross-browser: Yes
Global Footer
<script type="text/javascript">
<!--
// Sticky Splitter
var split = [ ], mrgn = "24px", // splitter margin
img = [ "sticky.gif", "stickylock.gif" ]; // sticky and stickylock images
if(location.href.match(/board=[^&]+(&page=\d+)?$/))
for(var l = document.links, k = 4; k < l.length; k ++) if(l[k].className == "nav") {
var t = l[k].parentNode.getElementsByTagName("table");
t = t[t[1].rows[0].cells.length == 1 ? 1 : 3];
for(var i = t.rows, x = 2; x < i.length; x ++) {
if(!i[x].cells[0].hasChildNodes() || i[x].getElementsByTagName("img")[0].src.match(new RegExp(img.join("|") + "$"))) {
split.push(i[x].cloneNode(true));
i[x].style.display = "none";
} else {
break;
}
if(split.length) {
split.splice(0, 0, i[1].cloneNode(true));
var con = t.cloneNode(false);
con.style.marginBottom = mrgn;
con.appendChild(document.createElement("tbody"));
for(var x in split)
con.firstChild.appendChild(split[x]);
t.parentNode.parentNode.parentNode.parentNode.style.backgroundColor = "transparent";
t.className = "bordercolor";
con.className = "bordercolor";
t.parentNode.insertBefore(con, t);
}
break;
}
//-->
</script>