|
Post by Wormopolis on May 1, 2010 14:27:17 GMT -8
and final version, Im probably going to submit this to my database:
<script type='text/javascript'> <!-- // Go to your post after posting. // Original code created by CrAzY_J // New Version by Wormopolis
if( location.href.match(/display&board=/)) { pst=''; if(!location.href.match(/#(\d+)/)) { if(document.referrer && document.referrer.match(/action=modifypost/) && document.referrer.match(/post=(\d+)/)) { pst=RegExp.$1; } else { for (lnks=document.getElementsByTagName('a'), ll=lnks.length-1; ll>0; ll--) { if (lnks[ll].href.match(/action=gotopost/) && lnks[ll].innerHTML.match(/link to post/i) && lnks[ll].href.match(/post=(\d+)/)) { pst=RegExp.$1; break; } } } } else { pst=RegExp.$1; } if (pst && document.getElementsByName(pst)[0]) document.getElementsByName(pst)[0].scrollIntoView(true); }
// --> </script>
|
|
|
Post by rhondairv on May 3, 2010 13:56:01 GMT -8
works GREAT!!
I think you should put it in. It would be a terrific addition.
|
|