Tuesday, 7 May 2013

Cara Membuat Show-Hide Komentar/Expand-Collapse Comment Bag.3





Baiklah jika sobat penasaran contoh sobat bisa lihat langsung pada kotak komentar dipostingan ini..!!

1. Pertama,pergilah ke Dashboard,lalu Tata Letak,kemudian pilih tab Edit HTML.

2. Lalu contreng check box tulisan Expand Widget Templates,lalu cari kode berikut :
]]></b:skin> , Setelah ketemu,tepat diatasnya,letakkan kode CSS berikut :
 
/* Panel Comments */
a.openpanel {
display:block;
width:auto;
padding:0px 0px;
text-align:center;
font-weight:bold;
line-height:32px;
background-color:#000;
color:white;
text-decoration:none;
margin:0px 0px;
-webkit-box-shadow:0px 1px 1px rgba(0,0,0,0.2);
-moz-box-shadow:0px 1px 1px rgba(0,0,0,0.2);
box-shadow:0px 1px 1px rgba(0,0,0,0.2);
position:relative;
}
a.openpanel em {
width:0px;
height:0px;
display:block;
position:absolute;
top:15px;
right:15px;
border:6px solid transparent;
border-top-color:white;
}
a.openpanel.active {background-color:#303030;}
a.openpanel.active em {
top:6px;
border-color:transparent transparent white transparent;
}
div.paneline {
height:0px;
border-bottom:4px inset #1a1a1ab;
}
div.hompiPanel {
padding:10px 20px 20px;
-webkit-box-shadow:inset 0px 1px 7px rgba(0,0,0,0.2);
-moz-box-shadow:inset 0px 1px 7px rgba(0,0,0,0.2);
box-shadow:inset 0px 1px 7px rgba(0,0,0,0.2);
margin:0px 0px !important;
}

3. Setelah itu,masih di HTML area (aaaalah!),tarik scroll kebawah cari kode:
</head>, Setelah ketemu letakkan kode script di bawah ini tepat diatasnya.
 
<script src='http://reader-download.googlecode.com/svn/trunk/blogger-slide-panel-comments.js' type='text/javascript'></script>
<script type='text/javascript'>
//<![CDATA[
var panelSelector       = '#comments',
    openPanelText       = "Open Comment",
    closePanelText      = "Close Comment",
    slideDownPanelSpeed = 600,
    slideUpPanelSpeed   = 400;
//]]>
</script>

4. Lalu Simpan Template,Selesai!!


Selamat Mencoba!

No comments:

Post a Comment

Silahkan Komen Rider,