inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Nov 27, 2005 19:11:14 GMT -8
Code description: All the locked threads on a page will be moved to the bottom of that page. Code creator: CrAzY_J Code placement: Global Footers. (board footers are optional) <script type='text/javascript'> /* Locked thread to bottom of page created by CrAzY_J this code may not be redistributed without the express permission of the creator. this copyright header must stay intact at all time*/
var Image = /locked.gif/i; var Rows = document.body.getElementsByTagName('tr');
var Locked = new function() { this.lockedT = []; this.IntoArray = function() { for( r = 0 ; r < Rows.length ; r ++ ) { if( Rows[r].cells[0].width == '5%' && Rows[r].cells[0].className == 'windowbg2' ) { this.Ic = ( Rows[r].cells[0].firstChild.type == "checkbox" )? 1:0; if( Rows[r].cells[this.Ic] ) { if( Rows[r].cells[this.Ic].getElementsByTagName('img') ) { if( Rows[r].cells[this.Ic].getElementsByTagName('img')[0].src.match(Image) ) { Rows[r].parentNode.id = 'ident'; this.lockedT.push( Rows[r] ); Rows[r].parentNode.removeChild( Rows[r] ); } } } } } } this.toTab = function() { var Id = document.getElementById('ident'); for( z = 0 ; z < this.lockedT.length ; z ++ ) Id.insertBefore( this.lockedT[z], Id.rows[Id.rows.length-(this.Ic+1)] ); } }
if( this.location.href.match(/board=\w+/) ) { Locked.IntoArray(); Locked.toTab(); } </script> Red: The name of the locked icon in the board pages. Default = Cross Browser
|
|