|
Post by Reverse Blade on Jun 13, 2012 16:13:22 GMT
Going through an old test board of mine and found this code. From the looks of it it works pretty well. Will split the sticky threads away from normal threads. Goes in: GLOBAL FOOTER Preview: brpgtest2.proboards.com/index.cgi?board=general <script type='text/javascript'> <!--
/* Sticky Splitter By: Reverse Blade */
var d=document.getElementsByTagName('table'); for(var t=d.length-1;t>-1;t--) { for(var i=d[t].rows.length-1;i>-1;i--) {
if(d[t].rows[i].innerHTML.match(/sticky/i) && d[t].rows[i].cells[0].width=='5%') { var a=document.createElement('tr'); a.colSpan='7'; var e=document.createElement('td'); e.className='titlebg'; e.colSpan='7'; e.height='20px'; e.innerHTML='Normal Posts';
a.appendChild(e);
if(d[t].rows[i].cells[0].childNodes[0].childNodes[0].src.match(/sticky/i)) { d[t].rows[i].nextSibling.parentNode.insertBefore(a,d[t].rows[i].nextSibling);
break; } } } }
//--> </script>
|
|
|
Post by ≈April on Jun 13, 2012 21:02:29 GMT
Love that code! It makes everything look so much more organized. Thanks for contributing!
|
|
|
Post by Reverse Blade on Jun 13, 2012 22:57:08 GMT
Love that code! It makes everything look so much more organized. Thanks for contributing! Thanks! And.. no problem!
|
|
|
Post by black1star7 on May 28, 2020 16:26:22 GMT
Thanks for contributing
|
|