blackball
Not New Member
Posts: 21
blackball said 0 great things
|
Post by blackball on Jun 16, 2009 6:47:01 GMT -8
|
|
|
Post by Wormopolis on Jun 16, 2009 21:02:22 GMT -8
this should work... <script type="text/javascript"> <!-- // add "new thread" link into main page board cells // by Wormopolis - Wormocodes.proboards.com// keep header intact if (location.href.match(/board=/)) { linkstuff="<font style='font-size:8'>New Thread</font>"; //can be HTML for (tds=document.getElementsByTagName('td'), r=0; r<tds.length; r++) { if ( tds[r].width=="66%" && tds[r].className.match(/windowbg/) && tds[r].align=="left") { holdthis=tds[r].getElementsByTagName('a')[0].href; tds[r].style.padding=0; nwtbl=tds[r].appendChild(document.createElement('table')); nwtbl.width="100%"; nwRw=nwtbl.insertRow(0); nwcl2=nwRw.insertCell(0); nwcl1=nwRw.insertCell(0); nwcl1.appendChild(tds[r].firstChild); nwcl1.appendChild(tds[r].firstChild); nwcl1.appendChild(tds[r].firstChild); nwcl2.width="12%" nwcl2.align="right" nwcl2.vAlign="top" nwlnk=document.createElement('a'); nwlnk.href=holdthis+"&action=post"; nwlnk.innerHTML=linkstuff; nwcl2.appendChild(nwlnk); } } } // --> </script>
|
|