Home » » Cara membuat Show Hidden Komentar

Cara membuat Show Hidden Komentar

Written By d'zahhim on Sunday, May 13, 2012 | 2:15 AM


Berikut Cara membuat Show Hidden Komentar Blog :
1.      Masuk Ke akun blogger kita
2.      Kemudian pilih rancangan
3.      Terus klik Edit HTML Jangan lupa centang Expand Template Widget.
4.      Cari kode berikut ]]></b:skin> setelah itu masukkan kode ini diatasnya.

.commenthidden {display:none}
.commentshown {display:inline}

5.      Selanjutnya cari kode </head> dan letakan kode dibawah ini tepat diatas kode tadi

    <script type='text/Javascript'> 
    function togglecomments (postid) { 
    var whichpost = document.getElementById(postid); 
    if (whichpost.className==&quot;commentshown&quot;) { 
    whichpost.className=&quot;commenthidden&quot;; 
    } 
    else { 
    whichpost.className=&quot;commentshown&quot;; 
    } 
    } 
    </script>   

6.      Berikutnya cari lagi kode berikut ini <dl id='comments-block'> Kemudian copy kode dibawah ini tepat sebelum kode tersebut

<a aiotitle='click to expand' href='javascript:togglecomments(&quot;comments-block&quot;)'rel='nofollow'>
<b>komentar yang masuk</b></a>
<dl class='commenthidden' id='comments-block'>

7.      Save Template
Ganti tulisan yang berwarna biru dengan yang kamu inginkan.

Share this article :

0 komentar:

Post a Comment

 
Support by: PM12
Copyright © 2011 - 2012. d' zahhim - We advise you to keep your browser update. An updated browser is a browser safer!
Created by PM12
Powered by Blogger