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??
I'm wondering the same thing.
I guess people delete their previous entries or something.
catcherman16
Feb 8 2004, 11:58 AM
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
Feb 8 2004, 12:56 PM
keep the rest private.. n keep the one u want public
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
Feb 14 2004, 03:48 PM
la la la la...
espressive
Feb 14 2004, 04:42 PM
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
Feb 20 2004, 12:39 AM
is that even possible w/ just a code? i've always just made the other entries private
espressive
Feb 20 2004, 04:47 PM
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
Feb 20 2004, 11:59 PM
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
Feb 21 2004, 04:24 PM
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
Feb 22 2004, 12:01 AM
yes I`m wondering the same thing...
coyote
Feb 22 2004, 09:29 AM
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
Feb 22 2004, 09:37 AM
hehe no clu pero jus showin sum lubb**
coyote
Feb 22 2004, 09: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 -->
forgottentears
Feb 22 2004, 09:39 PM
u make ur other entries private
espressive
Feb 22 2004, 11:18 PM
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.