View Full Version : show only one entry...


SaltedLemons
08-03-2004, 06:06 PM
I know there is a code to show only one entry, but I'd like one that has a link to previous entries. Like how they have "show previous 5>>" or something like that, except for only one...

also I'd like to have links to entries that were significant to me, so how do I find the URL to specific entries? I never quite figured that out...

swEet lyK sugAh
08-03-2004, 10:17 PM
this removes the next 5 link

<script type="text/javascript">
//
// ?003 EasterEgg, http://www.xanga.com/easteregg
// Provided by http://www.Blogring.net
// from xanga.com/html_scripts
function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(

"Next 5 >>"
);

// *** add the replacing words or fragments below
var newWords = new Array(

""
);

allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');

var collections = new Array(allTableData,allTableHeaders);
//document.write.blogring.net
for (var k = 0 ; k < collections.length ; ++k )
{
for (var i = 0 ; i < collections[k].length ; ++i )
{
if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0 ; n < oldWords.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
//document.write.blogring.net
indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWords();
</script>

SaltedLemons
08-03-2004, 10:29 PM
Well I kind of wanted to keep the next five, yet show only one entry...if that makes sense...

mia_mia
08-03-2004, 11:26 PM
i dont think there is a code like that. do yoo have an example?

SaltedLemons
08-04-2004, 02:24 AM
Well I haven't really seen one...
I just sort of assumed someone would be able to modify the show one entry code for me, cause I have no clue how to do that...but oh well.
thanks anyway!