Öncelikle boş bir sayfa açıyoruz. Ve aşağıdaki kodlardan herhangi birini ekliyoruz. Kodlardaki 'SİTE ADRESİNİZ BURAYA' olan yeri site adresiniz ile dğiştirin.
1. seçenek
<script type='text/javascript'> //<![CDATA[ var postTitle = new Array(); var postUrl = new Array(); var postYear = new Array(); var postMonth = new Array(); var postYearMonth = new Array(); var postYearMonth2 = new Array(); var postLabels = new Array(); var postBaru = new Array(); var sortBy = "titleasc"; var tocLoaded = false; var numChars = 250; var postFilter = ""; var month2 = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"]; function loadtoc(a){ function b(){ if ("entry" in a.feed) { var d = a.feed.entry.length; numberfeed = d; ii = 0; for (var h = 0; h < d; h++) { var m = a.feed.entry[h]; var e = m.title.$t; var l = m.published.$t.substring(0, 10); var p = m.published.$t.substring(5, 7); var g = m.published.$t.substring(8, 10); var n = month2[parseInt(p, 10) - 1] + " " + m.published.$t.substring(0, 4); var c = "http://www.blogunuyaz.com/" + m.published.$t.substring(0, 4) + "_" + p + "_01_archive.html"; var j; for (var f = 0; f < m.link.length; f++) { if (m.link[f].rel == "alternate") { j = m.link[f].href; break } } var o = ""; for (var f = 0; f < m.link.length; f++) { if (m.link[f].rel == "enclosure") { o = m.link[f].href; break } } postTitle.push(e); postUrl.push(j); postYearMonth.push(n); postYearMonth2.push(c); } } } b(); displayToc2(); document.write('') } function displayToc2(){ var a = 0; var b = 0; while (b < postTitle.length) { temp1 = postYearMonth[b]; document.write('<div class="toc"><h3>' + temp1 + "</h3><ul>"); firsti = a; do { document.write("<li>"); document.write(' <a href="' + postUrl[a] + '">' + postTitle[a] + "</a>"); document.write("</li>"); a = a + 1 } while (postYearMonth[a] == temp1); b = a; document.write("</ul></div>"); if (b > postTitle.length) { break } } }; //]]> </script> <script src="http://SİTE ADRESİNİZİ BURAYA YAZIN/feeds/posts/default?max-results=500&alt=json-in-script&callback=loadtoc"> </script>
2. Seçenek
<script src="http://yourjavascript.com/9184200431/blogtoc-min.js" type="text/javascript"> </script><br /> <script src="http://SİTE ADRESİNİZi BURAYA//feeds/posts/default?max-results=9999&alt=json-in-script&callback=loadtoc"> </script>
3. Seçenek
<div style="overflow:auto; padding:5px; width:185px; height:300px; background-color: rgb(255, 255, 255); border:1px solid #ccc;"><script src="http://yourjavascript.com/524549651/sitemap.js"></script><script src="http://SİTE ADRESİNİZ BURAYA/feeds/posts/default?max-results=500&alt=json-in-script&callback=loadtoc"></script></div>
Artık arşiv sayfamızı yaptık. Yapamadığınız veya takıldığınız yer varsa yorum bölümünden yazabilirsiniz.

0 yorum:
Yorum Gönder