Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Jun 5, 2006 20:01:55 GMT -5
Created By: Todge Creator's Comments: This has been asked for several times, so here ir 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(document.all) { boards[b].getElementsByTagName('a')[0].href=click.split("'")[1]; } else { boards[b].getElementsByTagName('a')[0].href=click.split('"')[1]; } } } } } //--> </script>
|
|