|
Post by CD on Apr 17, 2005 16:25:43 GMT -8
PreviewCross Browser with slight error in FF. Error: Board on right side is 2-3 pixels instead of 1. Quick thanks to Crazy for pointing out the fact I forgot "pages" when I did the first code. All Board Footers. One line to edit, right at the top. Not too hard. If you use Cell Highlight, put it before this code. Your poll and locked poll icons must contain "poll" in their file name at one point or another. <script> <!-- // Advance Board Layout v1 by CDDude229. // May not be redistributed without permission. // This header must stay intact at all times.
// Edit this with the replacement for "Subject" var TI= "Thread Information";
// No need to edit below here var aTD= document.getElementsByTagName("TD"); var aB= document.getElementsByTagName("B"); var aFO= document.getElementsByTagName("font");
for(j=0;j<aFO.length;j++){ if(aFO[j].innerHTML.match(/(\d+)/i) && aFO[j].size=="2" && aFO[j].innerHTML.match(/Hey/i)){} else{ if(aFO[j].innerHTML.match(/(\d+)/i) && aFO[j].size=="2"){ aFO[j].size="1";} }}
for(a=0;a<aTD.length;a++){ if(aTD[a].width=="48%" && aTD[a].className=="windowbg"){ var start= aTD[a+1].innerHTML var reply= aTD[a+2].innerHTML var view= aTD[a+3].innerHTML var icon= aTD[a-1].innerHTML var icon2= aTD[a-2].innerHTML
if(aTD[a].innerHTML.match(/ Pages: /)){ if(navigator.appName.match(/Microsoft/i)) { var info = aTD[a].innerHTML.split("<B"+"R>"); } else { var info = aTD[a].innerHTML.split("<b"+"r>"); } if(aTD[a+5].innerHTML.match(/Poll/i) && aTD[a+5].width=="6%"){ var poll= aTD[a+5].innerHTML; aTD[a].innerHTML=" [ "+info[0]+" | "+info[1]+" ] [ "+icon2+" | "+icon+" | "+poll+" ] [<font size='1'> Replies: "+reply+" | Views: "+view+" | Started by "+start+" </font>] "; aTD[a+5].style.display="none";} else{ aTD[a].innerHTML=" [ "+info[0]+" | "+info[1]+" ] [ "+icon2+" | "+icon+" ] [<font size='1'> Replies: "+reply+" | Views: "+view+" | Started by "+start+" </font>] "; }} else{ if(aTD[a+5].innerHTML.match(/Poll/i) && aTD[a+5].width=="6%"){ var poll= aTD[a+5].innerHTML; var info= aTD[a].innerHTML; aTD[a].innerHTML=" [ "+info+" ] [ "+icon2+" | "+icon+" | "+poll+" ] [<font size='1'> Replies: "+reply+" | Views: "+view+" | Started by "+start+" </font>] "; aTD[a+5].style.display="none";} else{ var info= aTD[a].innerHTML; aTD[a].innerHTML=" [ "+info+" ] [ "+icon2+" | "+icon+" ] [<font size='1'> Replies: "+reply+" | Views: "+view+" | Started by "+start+" </font>] "; }}
aTD[a+1].style.display="none"; aTD[a+2].style.display="none"; aTD[a+3].style.display="none"; aTD[a-1].style.display="none"; aTD[a-2].style.display="none"; aTD[a].width=="74%"; }}
for(c=0;c<aTD.length;c++){ if(aTD[c].innerHTML.match(/Subject/i) && aTD[c].width=="48%"){ aTD[c+1].style.display="none"; aTD[c+2].style.display="none"; aTD[c+3].style.display="none"; aTD[c-1].style.display="none"; aTD[c].width="80%"; }}
for(b=0;b<aB.length;b++){ if(aB[b].innerHTML.match(/Subject/i)){ aB[b].innerHTML=""+TI+""; }} //--> </script>
Last Edit: Apr 18, 2005 14:59:23 GMT -8 by CD
|
|
|
Post by CrAzY_J on Apr 17, 2005 16:31:36 GMT -8
good job man ^_^
|
|
100%
|
Post by Aaron on Apr 17, 2005 16:41:40 GMT -8
Good job!
Some suggestions that you may want to consider:
Make the size of the text under the thread link size=1.
If it's not, make it cell highlight compatible.
|
|
|
Post by CD on Apr 17, 2005 16:52:42 GMT -8
1. I'll change that now. Edit: Done. 2. Crap, forgot to check. >< Edit: Yeah, it is, if you have it before it.
Last Edit: Apr 17, 2005 16:59:37 GMT -8 by CD
|
|
100%
|
Post by Aaron on Apr 18, 2005 14:08:15 GMT -8
The numbers (replies/views) are still big.
|
|
|
Post by CD on Apr 18, 2005 14:34:24 GMT -8
Oh, that. >< Its because there's a single font tag inside of that. I'll edit the script to change that quickly. Edit: Done. Edit 2: I checked the info, and when I did, it grabbed PM info, so I edited again.
Last Edit: Apr 18, 2005 14:59:07 GMT -8 by CD
|
|
|
Post by ShadowyOne on Apr 18, 2005 15:34:33 GMT -8
Nice job, it definitely looks a lot different from the default layout (I know that was the purpose, I'm just pointing it out...).
Last Edit: Apr 18, 2005 15:34:45 GMT -8 by ShadowyOne
|
|