|
Post by CrAzY_J on Apr 5, 2005 13:29:51 GMT -8
cross browser
This will take the moderators under your board description away and place it behind the last post
Main Footers (ONLY)
<script> /* Moderators behind last post (Main Footers) created by CrAzY_J Do not repost this code anywhere else without the permission of it's creator use freely */
var Tab=document.body.getElementsByTagName('table'); for(t=0;t<Tab.length;t++){ if(Tab[t].width=='100%' && Tab[t].cellPadding=='4' && Tab[t].cellSpacing=='1' && Tab[t].rows[0].cells[0].innerHTML.match(/forum name/i)){ var Icell=Tab[t].rows[0].insertCell(4) Icell.className='titlebg'; Itxt=document.createTextNode('Moderator(s)'); Ifont=document.createElement('font'); Ifont.className='text1';Ifont.size='2'; Ifont.appendChild(Itxt);Icell.appendChild(Ifont); var Tr=Tab[t].getElementsByTagName('tr') for(r=0;r<Tr.length;r++){ if(Tr[r].innerHTML.match(/(moderator|moderators):(.+?)<\/td/i)){ var Mods=RegExp.$2; Tr[r].getElementsByTagName('i')[0].style.display='none'; var Cell=Tr[r].insertCell(5); Cell.innerHTML=Mods;Cell.className='windowbg2'; } if(Tr[r].cells[0].className=='catbg'){ Tr[r].insertCell(1).className='catbg'; }}}} </script>
|
|
|
Post by KunaiFlame on Apr 5, 2005 13:57:26 GMT -8
Hey,that's pretty cool.Great job.I've got to start looking at Regular Expressions myself.I haven't started yet. Do you know of a site that teaches you and goes in depth with the topic?Anyway,once again,great job on a cool code.
|
|
|
Post by Kenshin on Apr 5, 2005 14:03:30 GMT -8
|
|
|
Post by CrAzY_J on Apr 5, 2005 16:19:05 GMT -8
Hey,that's pretty cool.Great job.I've got to start looking at Regular Expressions myself.I haven't started yet. Do you know of a site that teaches you and goes in depth with the topic?Anyway,once again,great job on a cool code. i posted a link in your thread at the code chat thanks guys
|
|