Blog DX

Accordion sitemap (TOC) cho blogger

31 tháng 1, 2015
Sitemap rất cần thiết đối với mỗi blog, giúp người đọc có thể dễ dàng tìm hiểu và theo dõi blog của bạn. Bài viết này sẽ giới thiệu cho các bạn 2 kiểu style Accordion sitemap.

Kiểu 1


Đăng nhập blogger ~> Vào Trang ~> Trang mới
Tiêu đề đặt là Sitemap. Tại phần bài viết, chuyển qua thẻ HTML và dán đoạn code sau vào rồi nhấn Xuất bản
<script type='text/javascript'>
//<![CDATA[
if (typeof jQuery == 'undefined') {
    cekjq = {};
    cekjq.s = document.createElement('script');
    cekjq.s.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js';
    document.getElementsByTagName('head')[0].appendChild(cekjq.s)
}
var postTitle = new Array();
var postUrl = new Array();
var postMp3 = new Array();
var postDate = new Array();
var postLabels = new Array();
var postBaru = new Array();
var sortBy = "titleasc";
var tocLoaded = false;
var numChars = 250;
var postFilter = '';
var numberfeed = 0;

function loadtoc(json) {
    function getPostData() {
        if ("entry" in json.feed) {
            var numEntries = json.feed.entry.length;
            numberfeed = numEntries;
            ii = 0;
            for (var i = 0; i < numEntries; i++) {
                var entry = json.feed.entry[i];
                var posttitle = entry.title.$t;
                var postdate = entry.published.$t.substring(0, 10);
                var posturl;
                for (var k = 0; k < entry.link.length; k++) {
                    if (entry.link[k].rel == 'alternate') {
                        posturl = entry.link[k].href;
                        break
                    }
                }
                var postmp3 = '';
                for (var k = 0; k < entry.link.length; k++) {
                    if (entry.link[k].rel == 'enclosure') {
                        postmp3 = entry.link[k].href;
                        break
                    }
                }
                var pll = '';
                if ("category" in entry) {
                    for (var k = 0; k < entry.category.length; k++) {
                        pll = entry.category[k].term;
                        var l = pll.lastIndexOf(';');
                        if (l != -1) {
                            pll = pll.substring(0, l)
                        }
                        postLabels[ii] = pll;
                        postTitle[ii] = posttitle;
                        postDate[ii] = postdate;
                        postUrl[ii] = posturl;
                        postMp3[ii] = postmp3;
                        if (i < 10) {
                            postBaru[ii] = true
                        } else {
                            postBaru[ii] = false
                        };
                        ii = ii + 1
                    }
                }
            }
        }
    }
    getPostData();
    sortBy = "titleasc";
    sortPosts(sortBy);
    sortlabel();
    tocLoaded = true;
    displayToc2();
    document.write('')
}
function filterPosts(filter) {
    scroll(0, 0);
    postFilter = filter;
    displayToc(postFilter)
}
function allPosts() {
    sortlabel();
    postFilter = '';
    displayToc(postFilter)
}
function sortPosts(sortBy) {
    function swapPosts(x, y) {
        var temp = postTitle[x];
        postTitle[x] = postTitle[y];
        postTitle[y] = temp;
        var temp = postDate[x];
        postDate[x] = postDate[y];
        postDate[y] = temp;
        var temp = postUrl[x];
        postUrl[x] = postUrl[y];
        postUrl[y] = temp;
        var temp = postLabels[x];
        postLabels[x] = postLabels[y];
        postLabels[y] = temp;
        var temp = postMp3[x];
        postMp3[x] = postMp3[y];
        postMp3[y] = temp;
        var temp = postBaru[x];
        postBaru[x] = postBaru[y];
        postBaru[y] = temp
    }
    for (var i = 0; i < postTitle.length - 1; i++) {
        for (var j = i + 1; j < postTitle.length; j++) {
            if (sortBy == "titleasc") {
                if (postTitle[i] > postTitle[j]) {
                    swapPosts(i, j)
                }
            }
            if (sortBy == "titledesc") {
                if (postTitle[i] < postTitle[j]) {
                    swapPosts(i, j)
                }
            }
            if (sortBy == "dateoldest") {
                if (postDate[i] > postDate[j]) {
                    swapPosts(i, j)
                }
            }
            if (sortBy == "datenewest") {
                if (postDate[i] < postDate[j]) {
                    swapPosts(i, j)
                }
            }
            if (sortBy == "orderlabel") {
                if (postLabels[i] > postLabels[j]) {
                    swapPosts(i, j)
                }
            }
        }
    }
}
function sortlabel() {
    sortBy = "orderlabel";
    sortPosts(sortBy);
    var j = 0;
    var i = 0;
    while (i < postTitle.length) {
        temp1 = postLabels[i];
        firsti = j;
        do {
            j = j + 1
        } while (postLabels[j] == temp1);
        i = j;
        sortPosts2(firsti, j);
        if (i > postTitle.length) break
    }
}
function sortPosts2(firstvar, lastvar) {
    function swapPosts2(x, y) {
        var temp = postTitle[x];
        postTitle[x] = postTitle[y];
        postTitle[y] = temp;
        var temp = postDate[x];
        postDate[x] = postDate[y];
        postDate[y] = temp;
        var temp = postUrl[x];
        postUrl[x] = postUrl[y];
        postUrl[y] = temp;
        var temp = postLabels[x];
        postLabels[x] = postLabels[y];
        postLabels[y] = temp;
        var temp = postMp3[x];
        postMp3[x] = postMp3[y];
        postMp3[y] = temp;
        var temp = postBaru[x];
        postBaru[x] = postBaru[y];
        postBaru[y] = temp
    }
    for (var i = firstvar; i < lastvar - 1; i++) {
        for (var j = i + 1; j < lastvar; j++) {
            if (postTitle[i] > postTitle[j]) {
                swapPosts2(i, j)
            }
        }
    }
}
function displayToc(filter) {
    var numDisplayed = 0;
    var tocTable = '';
    var tocHead1 = 'Judul Artikel';
    var tocTool1 = 'Klik untuk sortir berdasarkan judul';
    var tocHead2 = 'Tanggal';
    var tocTool2 = 'Klik untuk Sortir bedasarkan tanggal';
    var tocHead3 = 'Kategori';
    var tocTool3 = '';
    if (sortBy == "titleasc") {
        tocTool1 += ' (descending)';
        tocTool2 += ' (newest first)'
    }
    if (sortBy == "titledesc") {
        tocTool1 += ' (ascending)';
        tocTool2 += ' (newest first)'
    }
    if (sortBy == "dateoldest") {
        tocTool1 += ' (ascending)';
        tocTool2 += ' (newest first)'
    }
    if (sortBy == "datenewest") {
        tocTool1 += ' (ascending)';
        tocTool2 += ' (oldest first)'
    }
    if (postFilter != '') {
        tocTool3 = 'Klik untuk menampilkan semua'
    }
    tocTable += '<table>';
    tocTable += '<tr>';
    tocTable += '<td class="toc-header-col1">';
    tocTable += '<a href="javascript:toggleTitleSort();" title="' + tocTool1 + '">' + tocHead1 + '</a>';
    tocTable += '</td>';
    tocTable += '<td class="toc-header-col2">';
    tocTable += '<a href="javascript:toggleDateSort();" title="' + tocTool2 + '">' + tocHead2 + '</a>';
    tocTable += '</td>';
    tocTable += '<td class="toc-header-col3">';
    tocTable += '<a href="javascript:allPosts();" title="' + tocTool3 + '">' + tocHead3 + '</a>';
    tocTable += '</td>';
    tocTable += '<td class="toc-header-col4">';
    tocTable += 'Download MP3';
    tocTable += '</td>';
    tocTable += '</tr>';
    for (var i = 0; i < postTitle.length; i++) {
        if (filter == '') {
            tocTable += '<tr><td class="toc-entry-col1"><a href="' + postUrl[i] + '">' + postTitle[i] + '</a></td><td class="toc-entry-col2">' + postDate[i] + '</td><td class="toc-entry-col3">' + postLabels[i] + '</td><td class="toc-entry-col4">' + '<a href="' + postMp3[i] + '">' + 'Download' + '</a>' + '</td></tr>';
            numDisplayed++
        } else {
            z = postLabels[i].lastIndexOf(filter);
            if (z != -1) {
                tocTable += '<tr><td class="toc-entry-col1"><a href="' + postUrl[i] + '">' + postTitle[i] + '</a></td><td class="toc-entry-col2">' + postDate[i] + '</td><td class="toc-entry-col3">' + postLabels[i] + '</td><td class="toc-entry-col4">' + '<a href="' + postMp3[i] + '">' + 'Download' + '</a>' + '</td></tr>';
                numDisplayed++
            }
        }
    }
    tocTable += '</table>';
    if (numDisplayed == postTitle.length) {
        var tocNote = '<span class="toc-note">Menampilkan Semua ' + postTitle.length + ' Artikel<br/></span>'
    } else {
        var tocNote = '<span class="toc-note">Menampilkan ' + numDisplayed + ' artikel dengan kategori \'';
        tocNote += postFilter + '\' dari ' + postTitle.length + ' Total Artikel<br/></span>'
    }
    var tocdiv = document.getElementById("toc");
    tocdiv.innerHTML = tocNote + tocTable
}
function displayToc2() {
    var j = 0;
    var i = 0;
    document.write('<div id="daftar-isi">');
    while (i < postTitle.length) {
        temp1 = postLabels[i];
        document.write('<div class="sublabel">');
        document.write('<div class="judul-label">' + temp1 + '</div>');
        document.write('<div class="judul-list"><ol>');
        firsti = j;
        var tempposition = 'odd';
        do {
            if (tempposition == 'odd') {
                document.write('<li class="data-list list-ganjil">');
                tempposition = 'even'
            } else {
                document.write('<li class="data-list list-genap">');
                tempposition = 'odd'
            }
            document.write('<a href="' + postUrl[j] + '">' + postTitle[j] + '</a>');
            if (postBaru[j] == true) {
                document.write(' - <strong><em><span style="color: rgb(255, 0, 0);">New !!</span> </em></strong>')
            };
            document.write('</li>');
            j = j + 1
        } while (postLabels[j] == temp1);
        i = j;
        document.write('</ol></div></div>');
        sortPosts2(firsti, j);
        if (i > postTitle.length) break
    }
    document.write('</div>')
}
function toggleTitleSort() {
    if (sortBy == "titleasc") {
        sortBy = "titledesc"
    } else {
        sortBy = "titleasc"
    }
    sortPosts(sortBy);
    displayToc(postFilter)
}
function toggleDateSort() {
    if (sortBy == "datenewest") {
        sortBy = "dateoldest"
    } else {
        sortBy = "datenewest"
    }
    sortPosts(sortBy);
    displayToc(postFilter)
}
function showToc() {
    if (tocLoaded) {
        displayToc(postFilter);
        var toclink = document.getElementById("toclink")
    } else {
        alert("Just wait... TOC is loading")
    }
}
function hideToc() {
    var tocdiv = document.getElementById("toc");
    tocdiv.innerHTML = '';
    var toclink = document.getElementById("toclink");
    toclink.innerHTML = '<a href="#" onclick="scroll(0,0); showToc(); Effect.toggle(' + "'toc-result','blind');" + '">¡í Menampilkan Daftar Isi</a> <img src="http://radiorodja.googlepages.com/new_1.gif"/>'
}
function looptemp2() {
    for (var i = 0; i < numberfeed; i++) {
        document.write('<br>');
        document.write('Post Link    : ' + '<a href="' + postUrl[i] + '">' + postTitle[i] + '</a>' + '<br>');
        document.write('Download mp3  : ' + '<a href="' + postMp3[i] + '">' + postTitle[i] + '</a>' + '<br>');
        document.write('<br>')
    }
}
//]]>
</script>
<script src="http://dxoan.blogspot.com/feeds/posts/summary?max-results=1000&amp;alt=json-in-script&amp;callback=loadtoc">
</script>
<script type="text/javascript">
var accToc=true;
</script>
<script type='text/javascript'>
//<![CDATA[
/*
 * RAccordion for TOC
 *  By Abu Farhan (www.abu-farhan.com)
 * Don't eidt this script (if you edit same as thief)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f $0=n.o();b g(){$0("#2-3 .1-5").p();$0("#2-3  .1-7").q("r","s");$0("#2-3 .1-5:h").t();$0("#2-3 .1-7:h").i("6");$0("#2-3 .1-7").u(b(){c(v){f a=$0(4).d();c((a.8(".1-5"))&&(a.8(":e"))){$0(4).d().j("9");$0(4).k("6");l m}c((a.8(".1-5"))&&(!a.8(":e"))){$0("#2-3  .1-5:e").w("9");$0("#2-3  .1-7").x("6");a.y("9");$0(4).i("6");l m}}z{$0(4).d().j("9");$0(4).k("6")}})}$0(A).B(b(){g()})',38,38,'jxToc|judul|daftar|isi|this|list|headactive|label|is|normal||function|if|next|visible|var|initAccToc|first|addClass|slideToggle|toggleClass|return|false|jQuery|noConflict|hide|css|cursor|pointer|show|click|accToc|slideUp|removeClass|slideDown|else|document|ready'.split('|'),0,{}))
//]]>
</script>
<style>
.judul-label{
background-color:#E5ECF9;
font-weight:bold;
line-height:1.4em;
margin-bottom:5px;
overflow:hidden;
white-space:nowrap;
vertical-align: baseline;
margin: 0 2px;
outline: none;
cursor: pointer;
text-decoration: none;
font: 14px/100% Arial, Helvetica, sans-serif;
padding: .5em 2em .55em;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
border-radius: .5em;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 1px 1px 4px #AAAAAA;
box-shadow: 0 1px 2px rgba(0,0,0,.2);
color: #e9e9e9;
border: 2px solid white !important;
background: #6e6e6e;
background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
background: -moz-linear-gradient(top,  #888,  #575757);
filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
}
.data-list{
line-height:1.5em;
margin-left:5px;
margin-right:5px;
padding-left:15px;
padding-right:5px;
white-space:nowrap;
text-align:left;
font-family:"Arial",sans-serif;
font-size:12px;
}
.list-ganjil{
background-color:#F6F6F6;
}
.headactive{
color: #fef4e9;
border: 2px solid white !important;
background: #1C8DFF;
background: -webkit-gradient(linear, left top, left bottom, from(#9dc2e7), to(#438cd2));
background: -moz-linear-gradient(top,  #9dc2e7,  #438cd2);
filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#9dc2e7', endColorstr='#438cd2');
}
</style>

Thay http://dxoan.blogspot.com thành địa chỉ blog của bạn
max-results=1000 là số bài hiển thị


Kiểu 2


Đăng nhập blogger ~> Vào Trang ~> Trang mới
Tiêu đề đặt là Sitemap. Tại phần bài viết, chuyển qua thẻ HTML và dán đoạn code sau vào rồi nhấn Xuất bản
<style>
.judul-label{
text-transform:uppercase;
background: #616D7E url(http://lh5.ggpht.com/_BTztXRwC9ik/TNQPad_DI_I/AAAAAAAAEu4/wtICtukiAws/arrow-square-fd1.gif) no-repeat right -51px;
padding: 5px 27px 5px 8px;
margin: 0px;
font: bold 12px Arial, Helvetica, sans-serif;
border: solid 1px #c4c4c4;
border-bottom: none;
cursor: pointer;
color:#fff;
}
.data-list a{color:#333;}
.data-list a:hover{color:#7a1d18;}
.data-list{
line-height:1.5em;
margin-left:5px;
margin-right:5px;
padding-left:2px;
padding-right:5px;
white-space:nowrap;
text-align:left;
font-family:"Arial",sans-serif;
font-size:12px;
}
.headactive{
border-bottom:solid 1px #c4c4c4;
background-position: right 5px;
background-color: #959999;
color:#000;
}
</style>
<script type="text/javascript">
//<![CDATA[
// ---------------------------------------------------
// BLOGTOC
// ---------------------------------------------------
// BlogToc creates a clickable Table Of Contents for
// Blogger Blogs.
// It uses the JSON post feed, and create a ToC of it.
// The ToC can be sorted by title or by date, both
// ascending and descending, and can be filtered by
// label.
// ---------------------------------------------------
// Author: Beautiful Beta
// Url: http://beautifulbeta.blogspot.com
// Version: 2
// Date: 2007-04-12
// Modification By Abu Farhan
// Url : http://www.abu-farhan.com
// Accordion TOC
// ---------------------------------------------------
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(2b 2c==\'2d\'){V={};V.s=c.2e(\'2f\');V.s.1F=\'1a://1G.2g.1b/1G/2h/1H/1.3.2/1H.2i.2j\';c.2k(\'2l\')[0].2m(V.s)}4 6=E F();4 o=E F();4 r=E F();4 h=E F();4 e=E F();4 u=E F();4 9="G";4 1c=1I;4 2n=2o;4 v=\'\';4 1d=0;m 2p(W){m 1J(){5("b"1K W.1e){4 1f=W.1e.b.p;1d=1f;w=0;A(4 i=0;i<1f;i++){4 b=W.1e.b[i];4 1L=b.X.$t;4 1M=b.2q.$t.1N(0,10);4 1g;A(4 k=0;k<b.H.p;k++){5(b.H[k].1O==\'2r\'){1g=b.H[k].q;Y}}4 1h=\'\';A(4 k=0;k<b.H.p;k++){5(b.H[k].1O==\'2s\'){1h=b.H[k].q;Y}}4 I=\'\';5("1i"1K b){A(4 k=0;k<b.1i.p;k++){I=b.1i[k].2t;4 l=I.1P(\';\');5(l!=-1){I=I.1N(0,l)}e[w]=I;6[w]=1L;h[w]=1M;o[w]=1g;r[w]=1h;5(i<10){u[w]=1j}C{u[w]=1I};w=w+1}}}}}1J();9="G";P(9);1k();1c=1j;1Q();c.n(\'</D><a q="1a://2u.2v-2w.1b" 1R="2x-2y: 2z; 2A-2B:2C; 1S: #2D;">2E 2F 2G 2H</a>\')}m 2I(Q){1T(0,0);v=Q;J(v)}m 1U(){1k();v=\'\';J(v)}m P(9){m K(x,y){4 7=6[x];6[x]=6[y];6[y]=7;4 7=h[x];h[x]=h[y];h[y]=7;4 7=o[x];o[x]=o[y];o[y]=7;4 7=e[x];e[x]=e[y];e[y]=7;4 7=r[x];r[x]=r[y];r[y]=7;4 7=u[x];u[x]=u[y];u[y]=7}A(4 i=0;i<6.p-1;i++){A(4 j=i+1;j<6.p;j++){5(9=="G"){5(6[i]>6[j]){K(i,j)}}5(9=="1l"){5(6[i]<6[j]){K(i,j)}}5(9=="1m"){5(h[i]>h[j]){K(i,j)}}5(9=="Z"){5(h[i]<h[j]){K(i,j)}}5(9=="1V"){5(e[i]>e[j]){K(i,j)}}}}}m 1k(){9="1V";P(9);4 j=0;4 i=0;11(i<6.p){R=e[i];12=j;1W{j=j+1}11(e[j]==R);i=j;1n(12,j);5(i>6.p)Y}}m 1n(1X,1o){m 1Y(x,y){4 7=6[x];6[x]=6[y];6[y]=7;4 7=h[x];h[x]=h[y];h[y]=7;4 7=o[x];o[x]=o[y];o[y]=7;4 7=e[x];e[x]=e[y];e[y]=7;4 7=r[x];r[x]=r[y];r[y]=7;4 7=u[x];u[x]=u[y];u[y]=7}A(4 i=1X;i<1o-1;i++){A(4 j=i+1;j<1o;j++){5(6[i]>6[j]){1Y(i,j)}}}}m J(Q){4 S=0;4 d=\'\';4 1Z=\'2J 1p\';4 L=\'1q 1r 2K 2L 1s\';4 20=\'2M\';4 M=\'1q 1r 2N 2O 2P\';4 21=\'2Q\';4 1t=\'\';5(9=="G"){L+=\' (2R)\';M+=\' (1u 13)\'}5(9=="1l"){L+=\' (1v)\';M+=\' (1u 13)\'}5(9=="1m"){L+=\' (1v)\';M+=\' (1u 13)\'}5(9=="Z"){L+=\' (1v)\';M+=\' (2S 13)\'}5(v!=\'\'){1t=\'1q 1r 2T 2U\'}d+=\'<22>\';d+=\'<N>\';d+=\'<8 f="g-14-1w">\';d+=\'<a q="1x:23();" X="\'+L+\'">\'+1Z+\'</a>\';d+=\'</8>\';d+=\'<8 f="g-14-1y">\';d+=\'<a q="1x:24();" X="\'+M+\'">\'+20+\'</a>\';d+=\'</8>\';d+=\'<8 f="g-14-1z">\';d+=\'<a q="1x:1U();" X="\'+1t+\'">\'+21+\'</a>\';d+=\'</8>\';d+=\'<8 f="g-14-1A">\';d+=\'15 2V\';d+=\'</8>\';d+=\'</N>\';A(4 i=0;i<6.p;i++){5(Q==\'\'){d+=\'<N><8 f="g-b-1w"><a q="\'+o[i]+\'">\'+6[i]+\'</a></8><8 f="g-b-1y">\'+h[i]+\'</8><8 f="g-b-1z">\'+e[i]+\'</8><8 f="g-b-1A">\'+\'<a q="\'+r[i]+\'">\'+\'15\'+\'</a>\'+\'</8></N>\';S++}C{z=e[i].1P(Q);5(z!=-1){d+=\'<N><8 f="g-b-1w"><a q="\'+o[i]+\'">\'+6[i]+\'</a></8><8 f="g-b-1y">\'+h[i]+\'</8><8 f="g-b-1z">\'+e[i]+\'</8><8 f="g-b-1A">\'+\'<a q="\'+r[i]+\'">\'+\'15\'+\'</a>\'+\'</8></N>\';S++}}}d+=\'</22>\';5(S==6.p){4 16=\'<O f="g-25">1B 2W \'+6.p+\' 1p<D/></O>\'}C{4 16=\'<O f="g-25">1B \'+S+\' 2X 2Y 2Z \\\'\';16+=v+\'\\\' 30 \'+6.p+\' 31 1p<D/></O>\'}4 17=c.18("g");17.1C=16+d}m 1Q(){4 j=0;4 i=0;c.n(\'<B 32="33-34">\');11(i<6.p){R=e[i];c.n(\'<B f="35">\');c.n(\'<B f="1s-36">\'+R+\'</B>\');c.n(\'<B f="1s-T"><26>\');12=j;4 19=\'1D\';1W{5(19==\'1D\'){c.n(\'<1E f="27-T T-37">\');19=\'38\'}C{c.n(\'<1E f="27-T T-39">\');19=\'1D\'}c.n(\'<a q="\'+o[j]+\'">\'+6[j]+\'</a>\');5(u[j]==1j){c.n(\' - <28><29><O 1R="1S: 3a(3b, 0, 0);">3c !!</O> </29></28>\')};c.n(\'</1E>\');j=j+1}11(e[j]==R);i=j;c.n(\'</26></B></B>\');1n(12,j);5(i>6.p)Y}c.n(\'</B>\')}m 23(){5(9=="G"){9="1l"}C{9="G"}P(9);J(v)}m 24(){5(9=="Z"){9="1m"}C{9="Z"}P(9);J(v)}m 2a(){5(1c){J(v);4 U=c.18("U")}C{3d("3e 3f... 3g 3h 3i")}}m 3j(){4 17=c.18("g");17.1C=\'\';4 U=c.18("U");U.1C=\'<a q="#" 3k="1T(0,0); 2a(); 3l.3m(\'+"\'g-3n\',\'3o\');"+\'">¡í 1B 3p 3q</a> <3r 1F="1a://3s.3t.1b/3u.3v"/>\'}m 3w(){A(4 i=0;i<1d;i++){c.n(\'<D>\');c.n(\'3x 3y    : \'+\'<a q="\'+o[i]+\'">\'+6[i]+\'</a>\'+\'<D>\');c.n(\'15 3z  : \'+\'<a q="\'+r[i]+\'">\'+6[i]+\'</a>\'+\'<D>\');c.n(\'<D>\')}}',62,222,'||||var|if|postTitle|temp|td|sortBy||entry|document|tocTable|postLabels|class|toc|postDate|||||function|write|postUrl|length|href|postMp3|||postBaru|postFilter|ii||||for|div|else|br|new|Array|titleasc|link|pll|displayToc|swapPosts|tocTool1|tocTool2|tr|span|sortPosts|filter|temp1|numDisplayed|list|toclink|cekjq|json|title|break|datenewest||while|firsti|first|header|Download|tocNote|tocdiv|getElementById|tempposition|http|com|tocLoaded|numberfeed|feed|numEntries|posturl|postmp3|category|true|sortlabel|titledesc|dateoldest|sortPosts2|lastvar|Artikel|Klik|untuk|judul|tocTool3|newest|ascending|col1|javascript|col2|col3|col4|Menampilkan|innerHTML|odd|li|src|ajax|jquery|false|getPostData|in|posttitle|postdate|substring|rel|lastIndexOf|displayToc2|style|color|scroll|allPosts|orderlabel|do|firstvar|swapPosts2|tocHead1|tocHead2|tocHead3|table|toggleTitleSort|toggleDateSort|note|ol|data|strong|em|showToc|typeof|jQuery|undefined|createElement|script|googleapis|libs|min|js|getElementsByTagName|head|appendChild|numChars|250|loadtoc|published|alternate|enclosure|term|www|abu|farhan|font|size|8px|text|decoration|none|616469|Widget|by|Abu|Farhan|filterPosts|Judul|sortir|berdasarkan|Tanggal|Sortir|bedasarkan|tanggal|Kategori|descending|oldest|menampilkan|semua|MP3|Semua|artikel|dengan|kategori|dari|Total|id|daftar|isi|sublabel|label|ganjil|even|genap|rgb|255|New|alert|Just|wait|TOC|is|loading|hideToc|onclick|Effect|toggle|result|blind|Daftar|Isi|img|radiorodja|googlepages|new_1|gif|looptemp2|Post|Link|mp3'.split('|'),0,{}))
//]]>
</script>
<script src="http://dxoan.blogspot.com/feeds/posts/summary?max-results=1000&amp;alt=json-in-script&amp;callback=loadtoc"></script>
<script type="text/javascript">
var accToc=true;
</script>
<script type="text/javascript">
//<![CDATA[
/*
 * RAccordion for TOC
 *  By Abu Farhan (www.abu-farhan.com)
 * Don't eidt this script (if you edit same as thief)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f $0=n.o();b g(){$0("#2-3 .1-5").p();$0("#2-3  .1-7").q("r","s");$0("#2-3 .1-5:h").t();$0("#2-3 .1-7:h").i("6");$0("#2-3 .1-7").u(b(){c(v){f a=$0(4).d();c((a.8(".1-5"))&&(a.8(":e"))){$0(4).d().j("9");$0(4).k("6");l m}c((a.8(".1-5"))&&(!a.8(":e"))){$0("#2-3  .1-5:e").w("9");$0("#2-3  .1-7").x("6");a.y("9");$0(4).i("6");l m}}z{$0(4).d().j("9");$0(4).k("6")}})}$0(A).B(b(){g()})',38,38,'jxToc|judul|daftar|isi|this|list|headactive|label|is|normal||function|if|next|visible|var|initAccToc|first|addClass|slideToggle|toggleClass|return|false|jQuery|noConflict|hide|css|cursor|pointer|show|click|accToc|slideUp|removeClass|slideDown|else|document|ready'.split('|'),0,{}))
//]]>
</script>

Thay http://dxoan.blogspot.com thành địa chỉ blog của bạn
max-results=1000 là số bài hiển thị

2 nhận xét:

  1. Mình muốn hiển thị site map như của bạn.
    Có thể cho mình xin hướng dẫn được không

    Trả lờiXóa
    Trả lời
    1. Site map giống của mình đây: http://www.dxoan.com/2015/02/sitemap-theo-ngay-dang-va-nhan-cho-blogger.html

      Phần 2 nhé

      Xóa