|
Post by CD on Jun 25, 2005 14:07:50 GMT -8
Forums: ProBoards Version 4 Compatibility: FF and IE 6.0 Location: Board Footers or Global Footers Description: Alternates sides for mini-profile. First post is left, second is right, third is left, fourth is right, etc. Editing: No editing needed. Preview: Here <script> // Alternating Mini-profile sides by CDDude229 // Code may not be redistrbuted without permission
// No need to edit anything. var aTB = document.getElementsByTagName("TABLE"); if(location.href.match(/board=/i) && location.href.match(/action=display/i)){
for(a=0;a<aTB.length;a++){ if(aTB[a].rows[1] && aTB[a].rows[1].cells[0].innerHTML.match(/(Author|Poll)/i)){
if(aTB[a].rows[1].cells[0].innerHTML.match(/Author/i)){ aTB[a].rows[1].cells[0].style.display="none"; aTB[a].rows[1].cells[1].colSpan="3"; } else { aTB[a].rows[1].cells[1].colSpan="2"; aTB[a].rows[3].cells[0].style.display="none"; aTB[a].rows[3].cells[1].colSpan="3"; }
for(b=0;b<aTB[a].rows.length;b++){ if(aTB[a].rows[b].cells[0].colSpan=="2"){ aTB[a].rows[b].cells[0].colSpan="3"; } else if(aTB[a].rows[b].cells[0].colSpan=="3" || aTB[a].rows[b].cells[1].colSpan=="3"){} else { if(aTB[a].rows[b].cells[0].className=="windowbg2"){ var newcell = aTB[a].rows[b].insertCell(2); newcell.innerHTML=aTB[a].rows[b].cells[0].innerHTML; newcell.className="windowbg2"; newcell.style.backgroundColor=aTB[a].rows[b].cells[0].bgColor; newcell.width="20%"; aTB[a].rows[b].cells[1].width="80%" aTB[a].rows[b].cells[1].colSpan="2"; aTB[a].rows[b].deleteCell(0); } else { aTB[a].rows[b].cells[1].colSpan="2"; }
}}
break; }}}</script>
|
|
|
Post by Nomi on Jun 25, 2005 16:09:25 GMT -8
Man Cd you are just getting better and better Joo roxors
|
|
|
Post by SonicX on Jun 26, 2005 11:08:03 GMT -8
Man thats a nice code!!
|
|
|
Post by CD on Jun 26, 2005 12:57:48 GMT -8
Thanks guys.
|
|
100%
|
Post by Aaron on Jun 27, 2005 12:46:27 GMT -8
Hey, nice work!
|
|
|
Post by CD on Jun 27, 2005 13:18:56 GMT -8
Thanks Naruto. Also, it isn't in the database for some reason >_> Best bet is because SO moved it.
Last Edit: Jun 27, 2005 13:19:23 GMT -8 by CD
|
|
100%
|
Post by Aaron on Jun 27, 2005 20:32:31 GMT -8
Added.
|
|