View Full Version : The number of Xanga posts I can put up at a time...


KoreanMelodie
11-14-2004, 09:08 PM
Hi. I'm sorry to bother everyone with this question; I'm sure many of you have heard of this before. But do any of you out there know how to put up a certain number of posts at a time? Some people delete their entries but I don't want to do that. Actually, all that I'm asking for is a simple code [that I would understand ^_^] to put up maybe two weblog entries, just to make my xanga evenly spaced and everything =]

Thankk you. It's very much appreciated :D

tokyo bleu
11-15-2004, 12:37 AM
From createBlog (http://createblog.com):
<script>
numberOfEntries = 2; //Change this value here...
if(location.pathname=='/home.aspx'){
var tds = document.getElementsByTagName ('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.parentNode.parentNode.paren tNode;
for(j=1;j<numberOfEntries;j++){
stuff=stuff.nextSibling.nextSibling.nextSibling
if(stuff.tagName=='BR'){
stuff=stuff.previousSibling;
}
}
for(i=0;i<20;i++){
if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE')
{
stuff.nextSibling.removeNode(true);
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>

Put it in Website Stats.

KoreanMelodie
11-15-2004, 10:18 PM
Thank you ^_^ I really appreciate it... since I'm so xanga illiterate xD