Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Jun 5, 2006 20:06:18 GMT -5
Created By: Todge Creator's Comments: This will make it so that, when you click to view a thread, you will be taken to either the first unread post, or, if no new post is present, to the top of the last page of that thread...
Put it in your Global Footer.
<script type="text/javascript"> <!-- var newIMG = 'new.gif'; var boards = document.getElementsByTagName('td'); for(b=0; b<boards.length; b++) { if(boards[b].width.match(/4(3|8)/)&&boards[b].className=='windowbg') { if(boards[b].innerHTML.match(newIMG)) { boards[b].onclick=function(){document.location.href=this.firstChild.href; this.getElementsByTagName('a')[1].href=this.firstChild.href;} } else { boards[b].onclick=function(){document.location.href=this.getElementsByTagName('a')[this.getElementsByTagName('a').length-1].href; this.getElementsByTagName('a')[0].href=this.getElementsByTagName('a')[this.getElementsByTagName('a').length-1].href;} } } } //--> </script>
Edit this line if you have replaced the [image] image..
var newIMG = 'new.gif';
|
|