Log In · Register

 
help please with the display one post script
butterfly_chica
post Jul 23 2005, 01:16 PM
Post #1


Newbie
*

Group: Member
Posts: 2
Joined: May 2005
Member No: 145,582



Hi. I have the display one post script on my site (xanga.com/butterfly_chica); however, when I click "older posts" it doesn't show the next one in line(July 12) but it shows one from way back(June 30).
Here's the script that I used:

<!-- begin code provided by createblog.com -->
<script>
numberOfEntries = 1; //
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.parentNode;
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')
{
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>
<!-- end code provided by createblog.com -->

I didn't mess with anything in the script. I did place a script that renames the "next 5/previous 5" words...could that have anything to do with it? Also, is there any way to only display the next 2(while staying at one post a page) and that be it without having to delete all the older posts?

Any help is greatly appreciated.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: