|
Post by CrAzY_J on Apr 9, 2005 8:12:46 GMT -8
Main Footers <script> /* Stupid Board Modifications 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; var iLin=Tr[r].getElementsByTagName('a')[1].href; Tr[r].cells[1].innerHTML+="<div align='right'>[<a href='"+iLin+"&action=post'>Create Thread</a>] [<a href='"+iLin+"&action=createpoll'>Create Poll</a>]</div>" 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> Cross BrowsersPreview
Last Edit: Apr 9, 2005 8:52:05 GMT -8 by CrAzY_J
|
|
100%
|
Post by Aaron on Apr 9, 2005 8:24:51 GMT -8
Got a preview?
|
|
|
Post by Nomi on Apr 9, 2005 8:39:45 GMT -8
|
|
|
Post by CrAzY_J on Apr 9, 2005 8:42:48 GMT -8
I edited my post with a preview. Nomi, thanks for the preview EDIT : I had a error, Nomi can you put the new code in?
Last Edit: Apr 9, 2005 8:47:03 GMT -8 by CrAzY_J
|
|
100%
|
Post by Aaron on Apr 9, 2005 8:47:48 GMT -8
This code has given me the idea of making a vB board modification layout =]
*I'm off to code*
|
|
|
Post by Eric on Apr 9, 2005 8:49:00 GMT -8
Only 1 suggestion Since the mods are on the right side, maybe remove them from where the board name + description. Good job other than that though
|
|
|
Post by Kenshin on Apr 9, 2005 8:49:01 GMT -8
As it looks like in Nomi's preview your code doesn't work you click on the link and it says this board does not exist
|
|
|
Post by CrAzY_J on Apr 9, 2005 8:53:04 GMT -8
I edited all suggestions.
Naruto you better not steal my idea...*goes off to code before Naruto finishes*
|
|