|
Post by Xero.Infection on Jul 2, 2005 18:04:31 GMT -8
Proboards v.4 CodeDescription: Places author of the thread under the thread title. Preview: [1]<script type='text/javascript'> //Author Under Thread Title :: Copyright '05 //Coded by Xero.Infection aka Spike //Place in Global Footer
var XI=document.body.getElementsByTagName('td'); for(t=0;t<XI.length;t++){ if(XI[t].width=='48%' && XI[t].className.match('windowbg')){ var author = XI[t+1].innerHTML; XI[t].innerHTML+="<br><font size='1'>Thread Started By: "+author+"</font>" }}var XI=document.body.getElementsByTagName('td'); for(t=0;t<XI.length;t++){ if(XI[t].width=='14%'){ XI[t].style.display = "none"; }} </script>
|
|
100%
|
Post by Aaron on Jul 13, 2005 11:09:14 GMT -8
Nice code, but you wouldn't have to define XI twice.
<script type='text/javascript'> //Author Under Thread Title :: Copyright '05 //Coded by Xero.Infection aka Spike //Place in Global Footer
var XI=document.body.getElementsByTagName('td'); for(t=0;t<XI.length;t++){ if(XI[t].width=='48%' && XI[t].className.match('windowbg')){ var author = XI[t+1].innerHTML; XI[t].innerHTML+="<br><font size='1'>Thread Started By: "+author+"</font>" } if(XI[t].width=='14%'){ XI[t].style.display = "none"; }} </script>
|
|
|
Post by Xero.Infection on Jul 13, 2005 11:21:54 GMT -8
Cool, I never knew that. Thanks.
|
|