Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:19:43 GMT
Someone wanted this for some reason It will remove the in last link on the main page in the last post cells. <script type="text/javascript"> <!--
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "windowbg2" && iCell.item(c).width == "24%" && iCell.item(c).innerHTML.match(/>in /)){ iCell.item(c).innerHTML = iCell.item(c).innerHTML.replace(/<br\s?\/?>in /i, ""); var lastLink = iCell.item(c).getElementsByTagName("a").item(1); lastLink.parentNode.removeChild(lastLink); } }
//--> </script>Main footer
|
|