inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Oct 28, 2005 14:31:29 GMT -8
Code description: When you reply to a thread the topic summary will be reversed. So the newest post will be on the top Code creator: CrAzY_J Code placement: Global Footers Thank you: CDdude229 and David for beta testing. And of course Peter too <script type="text/javascript"> /* Reverse Topic Summary Code created by CrAzY_J Do no redistribute without the express permission of the creator
Global Footers*/ var Atreyu = []; var Korn = document.body.getElementsByTagName("table"); function Metallica() { for( var Head = 0 ; Head < Korn.length ; Head ++ ) { if( Korn[Head].cellPadding == "4" && Korn[Head].cellSpacing == "1" && Korn[Head].rows[0].cells[0].innerHTML.match(/Topic\sSummary/) ) { for( var SOAD = 1 ; SOAD < Korn[Head].rows.length ; SOAD += 2 ) { Atreyu.push( Korn[Head].rows[SOAD+1] ); Atreyu.push( Korn[Head].rows[SOAD] ); Korn[Head].firstChild.removeChild( Korn[Head].rows[SOAD] ); SOAD --; } Atreyu.reverse(); for( var mudv = 0 ; mudv < Atreyu.length ; mudv ++ ) { Korn[Head].firstChild.appendChild( Atreyu[mudv] ); } } } }
if( this.location.href.match(/action=post&/i) ) Metallica();
</script>
|
|