#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 Nov 25, 2005 2:51:24 GMT -8
This has been asked for several times, so here it is...
This will take you to the first unread post, or the last post if not one, when clicking on either the cell or the thread title..
It's an update of the code I did previously, but because of it's extra functions, I decided to post it as a new code.
It goes in your Global Footer, no editing is required.
<script type="text/javascript"> <!-- // Jumps to most recent post in thread. // By Todge.
if(document.location.href.match('board=')&&!document.location.href.match('action=')) { 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].firstChild.nodeName=='A') { boards[b].onclick=function(){document.location.href=this.firstChild.href; this.getElementsByTagName('a')[1].href=this.firstChild.href;} } else { boards[b].onclick=boards[b+4].onclick; var click=new String(boards[b+4].onclick); if(!navigator.userAgent.match(/Firefox/)) { boards[b].getElementsByTagName('a')[0].href=click.split("'")[1]; } else { boards[b].getElementsByTagName('a')[0].href=click.split('"')[1]; }}}}} //--> </script>
|
|