help with the 'Display One Entry' script. |
help with the 'Display One Entry' script. |
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 --> |
|
|
|
souldreamers help with the 'Display One Entry' script. Oct 5 2004, 12:55 AM
lhuvhurts its only ment for one script just 1 no more just 1... Oct 5 2004, 01:19 AM
souldreamers QUOTE(lhuvhurts @ Oct 5 2004, 1:19 AM)its onl... Oct 5 2004, 01:33 AM
lhuvhurts ohh okay sorry i didnt understand u!!
anyw... Oct 5 2004, 02:06 AM
C.Lime.Jello. I was messing around with the code.
(Y'know, p... Oct 5 2004, 09:30 AM![]() ![]() |