er

Minggu, 18 November 2012

Cara Membuat Daftar Isi Blog dengan jQuery


Hai sobat Blogger.. Dulu saya pernah posting artikel untuk 'Membuat Daftar Isi Blog Otomatis Ter-update'. Naaah.. Sekarang, buat sobat Blogger yang pengen bikin 'Daftar Isi Blog' dengan tampilan dinamis dapat menggunakan jQuery seperti gambar di atas. Caranya gampang sobat Blogger, ikuti petunjuk berikut:

1. Masuk ke Blog Account
2. Copy kode di bawah:


<style type='text/css'> #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/AVvXsEgSN3DmLsp8M3DaUoGJoJzowmfmp476LXCcT40SinqnB-sL1Gw68TOYAE_aneXnHp_uvzPIAamu7Mn3rnLdFJiHw1iEf0vPalaxhmkxvmtdaPZlPjQWq7or6fC3SruL6tMYnlbu_CTJzBI/d/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/AVvXsEjpnjX93YIAKZ-nWpoTTgKvz0F-BU7HR2Rv0hvcvl-Z6USQ18PqzFtL7DRFHY1hz0USoLevsxoXWVSPhlPyfdmFsSfyZ31u4Vp4TfWq0dObWhQX-w4eP0Dllb16t9RwUzwpPdvvJ2uvl8c/d/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/AVvXsEg6vbOKE9CfspgeXvXAIGD6C7aCcm2HEIdLDkk6M1PVmJce8Rh_S2Lf-MAneYLVZlKvMaHY00waopsMsDRAc84mAiouxw3-4VRtetY4YKb0gTrNIvzLV4LI3R1Jan44BYxSLaMfgV6TJ5Q/d/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); } </style> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script> <script type="text/javascript" src="http://infonetmu.googlecode.com/files/Acc1.js"></script> <script src="http://agopoenya.blogspot.com/feeds/posts/summary?max-results=1000&amp;alt=json-in-script&amp;callback=loadtoc"></script>

4. Paste di posting baru atau widget baru
5. Ganti kode yang berwarna merah dengan URL/alamat blog kamu
6. Publish/Save.

Jadi daaah.. Gampang kaaan...??
Facebook
1 Blogger

1 komentar:

Jangan lupa berikan komentar ya gan..