|
Post by tunescool on Oct 6, 2010 19:14:44 GMT -8
8
|
|
|
Post by Wormopolis on Oct 7, 2010 7:19:59 GMT -8
if (tds.className.match(/windowbg/) && tds.width.match(/^(1|8|23|24)%/)) {
|
|
|
Post by tunescool on Oct 7, 2010 9:28:56 GMT -8
i changed the only thing that started with if, nothing happened
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
boardsToIgnore="archives|board2"; boardsToAffect="nookfeat|ads|hidfeatsubsforum|convo"; boardsImg="http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg";
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.className.match(/windowbg/) && tds.width.match(/^(1|8|23|24)%/)) { tds.firstChild.innerHTML.match(/sub-board/)) { tds.firstChild.rows[0].cells[0].innerHTML=tds.firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s?)\)/,''); bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); dest.style.paddingTop="1"; var holdstuff; dest.innerHTML=holdstuff=""; rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i"); rgxp2=new RegExp("^("+boardsToAffect+")$",""); rgxp3=new RegExp("^("+boardsToIgnore+")$",""); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1] && fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff+="<a href='"+ fjumpList[j+1].value +"'><font color='116600' style='font-weight: bold; font-size:10'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</font></a>, "; j++; } holdstuff=holdstuff.substr(0,holdstuff.length-2); break; } } if (!bname.match(rgxp3)) { if(bname.match(rgxp2)){ var t = document.createElement("tr").appendChild(document.createElement("td")); t.className="windowbg"; t.colSpan=3; t.className="windowbg2"; t.innerHTML="<b></b> " + holdstuff; t=t.parentNode.appendChild(document.createElement("td")); t.style.backgroundImage="url("+boardsImg+")"; tds.parentNode.parentNode.insertBefore(t.parentNode, tds.parentNode.nextSibling); continue; } dest.innerHTML=holdstuff; dest.align="right"; tds.firstChild.rows[0].cells[1].appendChild(dest); } } } // --> </script>
|
|
|
Post by Wormopolis on Oct 7, 2010 16:52:39 GMT -8
I was modifying the code you previously posted.
|
|
|
Post by tunescool on Oct 7, 2010 16:57:59 GMT -8
so what should the code be
|
|
|
Post by Wormopolis on Oct 7, 2010 21:43:08 GMT -8
look for the line without the green.. add the green. if the on/off is 8% it should catch it.
|
|
|
Post by tunescool on Oct 7, 2010 22:32:39 GMT -8
todge made this, it says 8
<script type="text/javascript"> <!-- // Remove padding from on/off cell and move Last Post cell.
if(document.title.match(/- Home$/)) { var td=document.getElementsByTagName('td'); for(t=0; t<td.length; t++) { if(td[t].width == '8%' && td[t].className == 'windowbg' && td[t+1].style.cursor == 'pointer') { td[t].style.padding = 0; td[t].width = '1px'; td[t].parentNode.insertBefore(td[t].parentNode.lastChild,td[t+1]); }}} // --> </script>
|
|
|
Post by Wormopolis on Oct 8, 2010 11:51:00 GMT -8
THIS code: // Infocenter Font Title Reclass Board Thread Cells
|
|
|
Post by tunescool on Oct 8, 2010 12:38:52 GMT -8
i changed the rite line
|
|
|
Post by Wormopolis on Oct 8, 2010 19:23:42 GMT -8
I didnt realize that Todge's code was runnign first, so he actually changed that cell width to 1px.
lets start over.
you want the on/off cell to NOT have the grey background right?
|
|
|
Post by tunescool on Oct 8, 2010 22:37:36 GMT -8
i want it to have the background
|
|
|
Post by Wormopolis on Oct 9, 2010 0:46:34 GMT -8
ok.. but in IE and FF it HAS the background because you made the image itself with the grey background. are you going to use different images?
|
|
|
Post by tunescool on Oct 9, 2010 2:39:50 GMT -8
i just to want to have it the code
|
|
|
Post by Wormopolis on Oct 9, 2010 12:06:00 GMT -8
<style type="text/css"> .ICtitlereclass {height: 14px; background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .ICreclass {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .boardcells {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg);} .threadcells {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg);} </style>
<script type="text/javascript"> <!-- // Infocenter Font Title Reclass Board Thread Cells //if (document.postForm) { for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].className=='catbg' && tds[i].innerHTML.match(/(forum statistics|today's birthdays|users online|active users|events this month)/i)) { tds[i].parentNode.parentNode.parentNode.cellSpacing=0; if (!tds[i].innerHTML.match(/forum statistics/i)) { tds[i].className+=' ICtitlereclass'; hold=tds[i].getElementsByTagName('font')[0]; hold.size=''; hold.className+=" ICtitlefontreclass"; } tds[i].parentNode.nextSibling.firstChild.className+=" ICreclass"; tds[i].parentNode.nextSibling.firstChild.nextSibling.className+=" ICreclass"; } if (tds[i].className.match(/windowbg/) && tds[i].width.match(/^(1|23|24)%|^1px/)) { tds[i].className+=' boardcells'; } if (tds[i].className.match(/windowbg/) && tds[i].width.match(/^(4|14|15|20)%/)) { tds[i].className+=' threadcells'; } }
// --> </script>
|
|
|
Post by tunescool on Oct 9, 2010 13:39:58 GMT -8
that worked thanks wormer
can you add a background for the one cell that the sub boards are in the the sub boards code. it spans the on/off cell, new last post position, and board cell. then theresa new cell ater that id like to just keep there
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
boardsToIgnore="archives|board2"; boardsToAffect="nookfeat|ads|hidfeatsubsforum|convo"; boardsImg="http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg";
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="50%" && tds.className.match(/windowbg/) && tds.align=="left" && tds.firstChild.innerHTML.match(/sub-board/)) { tds.firstChild.rows[0].cells[0].innerHTML=tds.firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s?)\)/,''); bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); dest.style.paddingTop="1"; var holdstuff; dest.innerHTML=holdstuff=""; rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i"); rgxp2=new RegExp("^("+boardsToAffect+")$",""); rgxp3=new RegExp("^("+boardsToIgnore+")$",""); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1] && fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff+="<a href='"+ fjumpList[j+1].value +"'><font color='116600' style='font-weight: bold; font-size:10'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</font></a>, "; j++; } holdstuff=holdstuff.substr(0,holdstuff.length-2); break; } } if (!bname.match(rgxp3)) { if(bname.match(rgxp2)){ var t = document.createElement("tr").appendChild(document.createElement("td")); t.className="windowbg"; t.colSpan=3; t.className="windowbg2"; t.innerHTML="<b></b> " + holdstuff; t=t.parentNode.appendChild(document.createElement("td")); t.style.backgroundImage="url("+boardsImg+")"; tds.parentNode.parentNode.insertBefore(t.parentNode, tds.parentNode.nextSibling); continue; } dest.innerHTML=holdstuff; dest.align="right"; tds.firstChild.rows[0].cells[1].appendChild(dest); } } } // --> </script>
|
|