Help - Search - Members - Calendar
Full Version: one entry at a time
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
Suh
normally there's five entries at a time on the page.. is there a way where i could do it one entry at a time??
CEP
I'm wondering the same thing.
I guess people delete their previous entries or something.
catcherman16
yup.... you delete the previous entry....thats the only way i know of.... and if u want to save it you would probley have to save it on your own comp unless u have premium
casssy
keep the rest private.. n keep the one u want public
Nay
try this:

CODE
<!-- begin code provided by createblog.com -->

<script type="text/javascript">
<!--

// display only one blog
// written by Nay (http://blog.frozenashes.net)

var theDivs = document.getElementsByTagName('div');

for(var i = 0; i < theDivs.length; i++) {

  if(i > 0) {
     document.theDivs[i].style.display = 'none';
  }

}

//-->
</script>

<!-- end code provided by createblog.com -->


-Nay
ThePrincessofTKD
la la la la...

blink.gif
espressive
QUOTE(Nay @ Feb 8 2004, 5:24 PM)
try this:

CODE
<!-- begin code provided by createblog.com -->

<script type="text/javascript">
<!--

// display only one blog
// written by Nay (http://blog.frozenashes.net)

var theDivs = document.getElementsByTagName('div');

for(var i = 0; i < theDivs.length; i++) {

  if(i > 0) {
     document.theDivs[i].style.display = 'none';
  }

}

//-->
</script>

<!-- end code provided by createblog.com -->


-Nay

i tried it but it didn't work...?
ubiquitouz
is that even possible w/ just a code? i've always just made the other entries private wacko.gif
espressive
yea, i TRIED making the entries private. but then it just replaced the "private" ones with my old entries. and i've already blogged about half a year's worth of blogs, so i ain't gonna sit there, clicking, and waiting for the page to refresh cuz i'm not THAT desperate...!
coyote
CODE
<!-- begin code provided by createblog.com -->

<script>
// Display Only One Entry
// By Coyote
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; 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 -->
Tae
is there any way you can change the code up there to make it show two entry or three entry at a time? Instead of only one?
LiLmIsSvAnDy
yes I`m wondering the same thing... pinch.gif
coyote
i did write one, but it only worked with my xanga, it didn't work with a lot of people's xanga... I'll try and write it again...

BTW, just so you know, this thing displays ONLY one entry, not ONE Entry at a Time...
jennica
hehe no clu pero jus showin sum lubb** biggrin.gif
coyote
CODE
<!-- begin code provided by createblog.com -->
<!-- Display Custom Number Of Entries: dangit-->
<script>
// By: Paul Chen (coyote)
// dangit

numberOfEntries = 1;    //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.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')
{
 stuff.nextSibling.removeNode(true);
 break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>
<!-- End of Script : dangit-->
<!-- end code provided by createblog.com -->
forgottentears
u make ur other entries private
_smile.gif
espressive
QUOTE(coyote @ Feb 22 2004, 9:22 PM)
CODE
<!-- begin code provided by createblog.com -->
<!-- Display Custom Number Of Entries: dangit-->
<script>
// By: Paul Chen (coyote)
// dangit

numberOfEntries = 1;    //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.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')
{
 stuff.nextSibling.removeNode(true);
 break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>
<!-- End of Script : dangit-->
<!-- end code provided by createblog.com -->

sweet....sweet, very nice! good job :-p

i've been searching 4 this code since 4EVR!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.