inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jan 29, 2006 15:57:56 GMT -8
Global Footer
<script type="text/javascript"> <!-- /* sort sticky threads alphabetically - ross please do not repost without permission */
var stickyImgs = /\/(sticky|stickylock)\.(gif|jpe?g|png|bmp)$/;
if(location.href.match(/board=\w+(&page=\d+)?(&moderationmode=\d)?(#\w+)?$/)) { var stickies = []; var tr = document.getElementsByTagName('tr'); var amm = (document.ammForm)? 1 : 0; for( r=0; r<tr.length; r++ ) { var img = tr.item(r).getElementsByTagName('img'); if( tr.item(r).cells.length == (amm + 7) && !tr.item(r).innerHTML.match(/announcement.gif/) && img.item(0) && img.item(0).src.match(stickyImgs)) { var re = [tr.item(r).getElementsByTagName('a').item(0).innerHTML, tr.item(r)]; stickies.push(re); tr.item(r).id = 'lastSticky'; tr.item(r).style.display = 'none'; } } stickies.sort(); if(stickies.length > 0) { for( i=stickies.length-1; i>-1; i-- ) { stickies[1].style.display = ''; document.getElementById('lastSticky').parentNode.insertBefore(stickies[1], document.getElementById('lastSticky')); } } } //--> </script>
|
|