#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Oct 31, 2005 11:41:49 GMT -8
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.. var newIMG = ' new.gif';
|
|