Kelebihan daftar isi dengan Jquery ini adalah pada tampilannya yang cukup menarik. Jika Anda ingin memasangnya di blog ikuti dan simak langkah-langkahnya berikut ini :
1. Login akun blogger Anda.
2. Pilih Template > Edit HTML > centang 'Expand Template Widget'.
3. Letakkan kode berikut diatas kode ]]></b:skin>
#dafis-acc{
font-family:"Trebuchet MS", Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2KJ9RRLn-1KHhDjj30-gcFYspAshJSktPFfFERtH3Jzjk_Ah0MbVSxu7rND2eGShMTWb21wAPw_tpLQlN4Y_lW693GRcyiN3XKpD81A7Om3uoKmrPWlTHp8QJvz9XTu983I7o_pIIsDU/s320/bg5.gif) repeat-y scroll left center #E7F7FB;
padding:2px 0;
border:1px solid #339DC6;
}
.dafis-label{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbvFA2PL5deuv2-BCRaQl9_WRaGtk7FA-qHB1ia6R3ECGvVWO0xkp7CYtCSSg72RZ-MVJ_4A795wlKwZHmdgTW6kaE-IKHxCz05B2vA1Xkm7M8DXGb3DQlz8RiFTJZt-R7uKQqtelrvHU/s1600/bg4.gif) repeat-x scroll 0 0 #E1F4FB;
font-weight:bold;
line-height:1.4em;
overflow:hidden;
white-space:nowrap;
vertical-align: baseline;
margin: 1px 3px;
outline: none;
cursor: pointer;
text-decoration: none;
padding: 2px 10px;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
border:1px solid #2F94BA;
}
.dafis-label:hover{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiktJ1h10v7TskCYRWoq28F9GVfD0jvXQhxxY4MttxR7CROrSeu6X_NFCpDXm-eJfKz6l5n6rJb-kNRgUAC7XGXM0Y35p7Qrt3N4bqXnGVYske59nSSMDARnjb2AzB8qBa8iBTKfM1gqVk/s320/bg2.gif) repeat-x scroll 0 0 #E1F4FB;
color:#003366;
}
.dafis-daf ol{
margin:0 0 0 30px !important;
padding:0 !important;
}
.dafis-daf ol li{
background-color:#C9E9F4;
line-height:1.5em;
margin:1px 3px !important;
white-space:nowrap;
text-align:left;
border:1px solid #339DC6;
}
.dafis-daf ol li a{
text-decoration: none !important;
color:#333 !important;
display:block;
padding-left:10px;
}
.dafis-daf ol li a:hover{
background: #7BC4DF;
border-left: 5px #333 solid;
padding-left: 5px;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
4. Kemudian letakkan juga kode berikut diatas kode </head> font-family:"Trebuchet MS", Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2KJ9RRLn-1KHhDjj30-gcFYspAshJSktPFfFERtH3Jzjk_Ah0MbVSxu7rND2eGShMTWb21wAPw_tpLQlN4Y_lW693GRcyiN3XKpD81A7Om3uoKmrPWlTHp8QJvz9XTu983I7o_pIIsDU/s320/bg5.gif) repeat-y scroll left center #E7F7FB;
padding:2px 0;
border:1px solid #339DC6;
}
.dafis-label{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbvFA2PL5deuv2-BCRaQl9_WRaGtk7FA-qHB1ia6R3ECGvVWO0xkp7CYtCSSg72RZ-MVJ_4A795wlKwZHmdgTW6kaE-IKHxCz05B2vA1Xkm7M8DXGb3DQlz8RiFTJZt-R7uKQqtelrvHU/s1600/bg4.gif) repeat-x scroll 0 0 #E1F4FB;
font-weight:bold;
line-height:1.4em;
overflow:hidden;
white-space:nowrap;
vertical-align: baseline;
margin: 1px 3px;
outline: none;
cursor: pointer;
text-decoration: none;
padding: 2px 10px;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
border:1px solid #2F94BA;
}
.dafis-label:hover{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiktJ1h10v7TskCYRWoq28F9GVfD0jvXQhxxY4MttxR7CROrSeu6X_NFCpDXm-eJfKz6l5n6rJb-kNRgUAC7XGXM0Y35p7Qrt3N4bqXnGVYske59nSSMDARnjb2AzB8qBa8iBTKfM1gqVk/s320/bg2.gif) repeat-x scroll 0 0 #E1F4FB;
color:#003366;
}
.dafis-daf ol{
margin:0 0 0 30px !important;
padding:0 !important;
}
.dafis-daf ol li{
background-color:#C9E9F4;
line-height:1.5em;
margin:1px 3px !important;
white-space:nowrap;
text-align:left;
border:1px solid #339DC6;
}
.dafis-daf ol li a{
text-decoration: none !important;
color:#333 !important;
display:block;
padding-left:10px;
}
.dafis-daf ol li a:hover{
background: #7BC4DF;
border-left: 5px #333 solid;
padding-left: 5px;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
5. Setelah itu Simpan template.6. Langkah selanjutnya adalah memasang daftar isi di blog, letakkan kode dibawah ini pada HTML/JavaScript atau posting blog Anda pada mode HTML.
<script type="text/javascript" src="http://blogatap.googlecode.com/files/Dafsis.js"></script> <script src="http://tkjsmk2kuripan.blogspot.com/feeds/posts/summary?max-results=1000&alt=json-in-script&callback=loadtoc"></script>
Keterangan:Ganti kode yang berwarna merah diatas dengan alamat URL blog Anda
Tidak ada komentar:
Posting Komentar