candei87
08-03-2005, 07:35 AM
i've searched and i've found a couple, but none of them seem to work. are there other codes that'll let me show only one post?? thanks
|
View Full Version : show only one post candei87 08-03-2005, 07:35 AM i've searched and i've found a couple, but none of them seem to work. are there other codes that'll let me show only one post?? thanks Sheila 08-03-2005, 07:47 AM http://s7.invisionfree.com/xblog/index.php?showtopic=2989 ? candei87 08-06-2005, 08:10 AM the scripts below. i can't seem to get it to work. what's wrong with it? or is there something i should do to my xanga?? <script> // Display Only One Entry // By Paul Chen aka Coyote if(location.pathname=="/home.aspx"){ var longer = false; var tds = document.getElementsByTagName('td'); for(i=0; i<tds.length;i++) { booga = tds[i].innerHTML.indexOf('blogheader'); if(booga==11){longer=false;break;} boogie = tds[i].innerHTML.indexOf('javascript'); if(boogie == 19){longer=true;break;} } var tables = tds[i].getElementsByTagName('table'); var numBreaks = 0; var x = 0; if(longer==true){x=3;}else{x=1} for(j=x; j<tables.length;j++) { numBreaks += tables[j].getElementsByTagName('br').length; tables[j].style.display='none'; } var divs = tds[i].getElementsByTagName('div'); for(j=2+(2*1)-2; j<divs.length;j++) { divs[j].style.display='none'; } var breaks = tds[i].getElementsByTagName('br'); for(j=breaks.length-5-numBreaks;j<breaks.length;j++) { breaks[j].style.display='none'; } var horizontals = tds[i].getElementsByTagName('hr'); var j = horizontals.length-1; horizontals[j].style.display='none'; } </script> tokyo bleu 08-06-2005, 09:04 AM Are you using Internet Explorer? This script doesn't work in Firefox. candei87 08-06-2005, 10:42 PM i see i see! thats what it is! thank you very much! |