Log In ke blog anda
Klik Rancangan
Klik Edit HTML
Letakkan Kode berikut di atas ]]></b:skin>
ul.tabs{margin:0; padding:0; float:left; list-style:none; height:32px; border-bottom:1px solid #999; border-left:1px solid #999; width:100%}Cari Kode </head> dan letakkan kode berikut di atasnya
ul.tabs li{float:left; margin:0; padding:0; height:31px; line-height:31px; border:1px solid #999; border-left:none; margin-bottom:-1px; overflow:hidden; position:relative; background:#e0e0e0}
ul.tabs li a{text-decoration:none; color:#000; display:block; font-size:1.2em; padding:0 20px; border:1px solid #fff; outline:none}
ul.tabs li a:hover{background:#ccc}
html ul.tabs li.active, html ul.tabs li.active a:hover{background:#fff; border-bottom:1px solid #fff}
.tab_container{border:1px solid #000; border-top:none; overflow:hidden; clear:both; float:left; width:100%; background:#fff}
.tab_content{padding:20px; font-size:1.2em}
Simpan Template<script type='text/javascript'>
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});
});
</script>
Klik lagi Rancangan
Klik Tambah Gadget
Pilih HTML/ JavaScript
Masukkan Kode kerikut ke dalamnya
Klik Simpan Template dan lihat hasilnya<ul class="tabs">
<li><a href="#tab1">Daftar Isi</a></li>
<li><a href="#tab2">Komentar</a></li>
<li><a href="#tab3">Sahabat</a></li>
<li><a href="#tab4">Populer Post</a></li>
</ul>
<div style="width: 100%; height: 300px; overflow: auto;">
<div class="tab_container">
<div id="tab1" class="tab_content">
<script src="http://karinafotocollection-project.googlecode.com/files/otomatisdaftar.js"></script><script src="http://NAMA-BLOG.blogspot.com/feeds/posts/default?max-results=999&alt=json-in-script&callback=loadtoc"></script></div>
<div id="tab2" class="tab_content">
<div style="background:FFFFFF; border: 0px solid #000;
overflow: auto; width: 100%; height: 280px;
text-align: center;"><div style="text-align: center;" class="imgblock200">
<script src="http://anasmcguire.googlepages.com/recentcomment_indo.js">
</script><script>var numcomments = 25;var showcommentdate
= true;var showposttitle = true;var numchars = 150;var standardstyling
= true;</script><script src="http://NAMA-BLOG.blogspot.com/
feeds/comments/default?alt=json-in-script&callback=showrecentcomments">
</script></div></div>
</div>
<div id="tab3" class="tab_content">
<ul>
<li><a href="http://blogonol.blogspot.com/" target="_blank">blogonol</a></li>
/* tambahkan alamat link sahabat anda di sini, caranya copy paste kode di atas
dan ganti kode merah dengan alamat link sahabat anda, kalau anda bersedia jadikan
blogonol salah satu sahabat anda. terima kasih */
</div>
<div id="tab3" class="tab_content">
<!-- Popular posts with comment count Start -->
<script type="text/javascript">
function getYpipePP(feed) {
document.write('<ol style="">');
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
var pComment = " (" + feed.value.items[i].commentcount + ")";
var pList = "<li>" + "<a href="+ href + '" target="_blank">' + pTitle;
document.write(pList);
document.write(pComment); //to remove comment count delete this line
document.write('</a></li>');
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://NAMA-BLOG.blogspot.com
&ShowHowMany=10 /* ganti angka 10 untuk mengatur jumlah tampilan */
&_id=390e906036f48772b2ed4b5d837af4cd
&_callback=getYpipePP
&_render=json"
type="text/javascript"></script>
<!-- Popular posts with comment count End -->
</div>
</div>
</div>
Selamat mencoba dan sukses selalu
"keep spirits and do the best"