Log In · Register

 
help with the 'Display One Entry' script.
souldreamers
post Oct 5 2004, 12:55 AM
Post #1


mmm hmmm
******

Group: Member
Posts: 1,591
Joined: Sep 2004
Member No: 47,325



Hi, I had used that script because I wanted just one entry to show at a time, but after using that there's no "Next >" option at the bottom of the page to view the previous blog. Is there anyway to still use that script AND have the option to view previous entries on the public page? Is there a way to add the "Next >" option? I'm working on my skins page and I wanted to show the public skins on the main page and custom skins on the previous page. *gah* I hope I'm making sense... here's my page that I'm working on.

http://www.xanga.com/home.aspx?user=souldreamers

If anyone can help I would appreciate it. Thanks

edit: btw here's the script..
CODE
<!-- begin code provided by createblog.com -->
<script>
// Display Only One Entry

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>
<!-- end code provided by createblog.com -->
 

Posts in this topic


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