iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 20, 2007 3:39:16 GMT -5
This code will place the 'New' image, that appears if there has been a new post in a thread, after the title of the thread, rather than in front of the title.
Cross Browser.
Global Footer.
Open Source.
<script type="text/javascript"> <!--
/*Place New Image After Thread Title - By iAlex - Open Source*/
if(location.href.match(/board=/) && !location.href.match(/action/)){ var iTd=document.getElementsByTagName('td'); var i=iTd.length; while(--i){ if(iTd.item(i).className.match(/windowbg$/) && iTd.item(i).width.match(/^4(8|3)%$/) && iTd.item(i-1) && iTd.item(i-1).width=="5%" && iTd.item(i).firstChild && iTd.item(i).firstChild.nodeName.match(/a/i) && iTd.item(i).firstChild.firstChild && iTd.item(i).firstChild.firstChild.nodeName.match(/img/i) && iTd.item(i).firstChild.firstChild.alt=="new "){ iTd.item(i).appendChild(document.createTextNode(' ')); iTd.item(i).appendChild(iTd.item(i).firstChild); } } }
//--> </script>
|
|