|
Post by tunescool on Jul 24, 2009 0:47:32 GMT -8
theyre on a third line and all jammed up against the topics
|
|
|
Post by tunescool on Jul 24, 2009 0:51:21 GMT -8
if i use a comma, the last one has a comma after it and it obviously looks stupid
|
|
|
Post by Wormopolis on Jul 24, 2009 1:24:51 GMT -8
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
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/)) { bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); var holdstuff; dest.innerHTML=holdstuff=""; rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i"); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff+="<a href='"+ fjumpList[j+1].value +"'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</a>, "; j++; } holdstuff=holdstuff.substr(holdstuff.length-2); break; } } dest.innerHTML=holdstuff; dest.align="right"; tds.appendChild(dest); } }
// --> </script>
|
|
|
Post by Wormopolis on Jul 24, 2009 1:26:11 GMT -8
I thought you said you wanted them over on the right under "new thread"?
|
|
|
Post by tunescool on Jul 24, 2009 1:43:42 GMT -8
yea thats where i want them, just dont want the comma or whatever after the last one, and the last letter is rite next to the topics line. there should be some space there
|
|
|
Post by tunescool on Jul 24, 2009 1:49:02 GMT -8
the last code just leaves a comma there and the sub boards disappear
and id like (3 Sub Boards) removed
|
|
|
Post by Wormopolis on Jul 24, 2009 2:59:38 GMT -8
replace:
holdstuff=holdstuff.substr(holdstuff.length-2);
with:
holdstuff=holdstuff.substr(0,holdstuff.length-2); holdstuff+=" "; //add more spaces by adding  
and after:
if (tds.width=="50%" && tds.className.match(/windowbg/) && tds.align=="left" && tds.firstChild.innerHTML.match(/sub-board/)) {
insert:
tds.firstChild.innerHTML=tds.firstChild.innerHTML.replace(/\(\d+\ssub-board(s)\)/)) {
|
|
|
Post by tunescool on Jul 24, 2009 3:16:57 GMT -8
the sub boards arent there still
|
|
|
Post by Wormopolis on Jul 24, 2009 11:36:33 GMT -8
I failed on that line...
change
tds.firstChild.innerHTML=tds.firstChild.innerHTML.replace(/\(\d+\ssub-board(s)\)/)) {
to
tds.firstChild.innerHTML=tds.firstChild.innerHTML.replace(/\(\d+\ssub-board(s)\)/,'');
|
|
|
Post by tunescool on Jul 24, 2009 12:04:04 GMT -8
|
|
|
Post by Wormopolis on Jul 24, 2009 12:50:27 GMT -8
well hell.. FF lets it happen, but IE gives a runtime error...
|
|
|
Post by Wormopolis on Jul 24, 2009 12:54:29 GMT -8
tds.firstChild.rows[0].cells[0].innerHTML=tds.firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s)\)/,'');
see if that works.
and the space at the end:
holdstuff+="&nb"+"sp"; //add more spaces by duplicating this line.
|
|
|
Post by tunescool on Jul 24, 2009 13:19:17 GMT -8
still the same. the space works
|
|
|
Post by Wormopolis on Jul 24, 2009 17:42:30 GMT -8
its gone on board with 3 sub-boards.. change it to this:
tds.firstChild.rows[0].cells[0].innerHTML=tds.firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s?)\)/,'');
|
|
|
Post by tunescool on Jul 24, 2009 17:53:10 GMT -8
its gone
|
|