Blogspot How-to

How to display every archive as a number and actual page at bottom of your blog ( ou comment afficher les pages et le numéro de la page actuelle sur blogspot) My settings are : Display last 7 days, and do an archive every week..


<!-- Begin #footer -->
<div id="footer"><hr />
<script type="text/javascript">
var archives = new Array();
var firstpage=1;
var currentURL = document.URL;
<BloggerArchives>
archives[archives.length] = new Array('<$BlogArchiveURL$>', '<$BlogArchiveName$>');
</BloggerArchives>

for (var i=1;i<archives.length+1;i++)
{
if ( archives[i-1][0] == currentURL ) {
firstpage=0;
}
}
for (var i=1;i<archives.length+1;i++)
{
if (( archives[i-1][0] == currentURL ) || (archives.length==i) && (firstpage==1)){
document.write('<u>');
}
document.write('<a href=\"' + archives[i-1][0] + '\">' + i + '</a>');
if (( archives[i-1][0] == currentURL ) || (archives.length==i) && (firstpage==1)){
document.write('</u>');
firstpage=0;
}
if (i < archives.length){
document.write(' - ');
}
}

</script>
</div>
<!-- End #footer -->

2 Comments:

Anonymous Anonyme said...

????? !!!!! ;;;:,,,,, ??????????????????????????????????????????????????????????????????????
rien compris.!!!!

28/11/05 15:34  
Blogger Christophe said...

C'est en rapport avec les papillons :)

28/11/05 18:29  

Enregistrer un commentaire

<< Home