View Full Version : one xangaentry code dun work??? for me....


coach x3
07-15-2005, 06:12 PM
ok you know that code where it shows only one xanga entry ata time?? well i triedit, and for some strange reason, it doesnt work for me! heres the code

<script>
numberOfEntries = 1; //Change this value here...
if(location.pathname=='/home.aspx'){
var tds = document.getElementsByTag Name ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds[i].innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){break;}
}
stuff = tds[i].parentNode.parentNode.pa rentNode.parentNode.paren tNode;
for(j=1;j<numberOfEntries;j++){
stuff=stuff.nextSibling.n extSibling.nextSibling
if(stuff.tagName=='BR'){
stuff=stuff.previousSibli ng;
}
}
for(i=0;i<20;i++){
if(stuff.tagName=='HR' && stuff.nextSibling.tagName =='TABLE')
{
stuff.nextSibling.removeN ode(true);
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none ';
}}
</script>

can someone please help??

tokyo bleu
07-16-2005, 12:45 AM
Did you put it in the right place?