Sidebar 3 tab in 1 yang mana ekk ? Hmm , tekan sini , keluar ini , tekan situ ehh keluar ini... Tekan jerawat , awww sakit lah ! ! Dusss ! kan dah dapat :P , Susah untuk dikatakan . tengok preview ini
Preview :
Haa , nampak tak ? Ada siapa-siapa nak cuba pasang.. Meyh follow step by step tuto ini ! :D
1. Dashboard --> Template --Edit Html -->
2. Find this code :
]]></b:skin>
3. Copy this code and paste code above ]]></b:skin>
ul.tabs li {4. Then , pergi cari kod
float: left;
margin: 0;
padding: 0;
height: 31px; /*--Subtract 1px from the height of the unordered list--*/
line-height: 31px; /*--Vertically aligns the text within the tab--*/
border-left: none;
margin-bottom: -1px; /*--Pull the list item down 1px--*/
overflow: hidden;
position: relative;
}
ul.tabs li a {
font-weight: bold;
color: #000;
display: block;
font-size: 10px;
padding: 0 20px;
border: 2px solid #FFF; /*--Gives the bevel look with a 1px white border inside the list item--*/
outline: none;
}
ul.tabs li a:hover {
background: #ECE0F8;
}
html ul.tabs li.active, html ul.tabs li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
background: #ECE0F8;
border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}
.tab_container {
overflow: hidden;
clear: both;
float: left; width: 98%;
background:#ffffff;
background-attachment:fixed;
}
.tab_content {
padding: 2px;
height :260px;
}
</head>5. Copy and paste code ini above </head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js' type='text/javascript'/>5. Preview , kalau tak ada error , save :D
<script>
$(document).ready(function() {
$(".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>
6. Next , Go to --> Layout --> Add A Gadget --> Choose Edit Html/JavaScript
7. Copy and paste this code :
<ul class="tabs">EDIT :
<li><a href="#tab1">Owner</a></li>
<li><a href="#tab2">Contact</a></li>
<li><a href="#tab3">Shout</a></li>
</ul>
<div class="tab_container">
<div id="tab1" class="tab_content">
Tab 1 Content
</div>
<div id="tab2" class="tab_content">
Tab 2 Content
</div>
<div id="tab3" class="tab_content">
Tab 3 Content
</div>
</div>
ABC : Tukar warna background tab sini
ABC : Tajuk Tab
ABC : Coding / Stuff /isi-isi mengikut tajuk tab
8. Preview.. If Doesn't Error Save !
Hmm , macam mana ? Jadi ke tidak ? harap-harap menjadi ! :D
Bagus tuto ni. Bleh try nnti. Hehe
ReplyDeleteNurul buat tutorial tentang google+ sebab ramai yg dah buat tapi bila kakak cuba klik tak ada link mereka. Sedih sebab tak dapat jejak mereka balik - bimbang dikata sombong kan.
ReplyDelete@KakzakieHmm, Insya'Allah nanti Nurrul share kan yer :D
ReplyDeleteComel.. Thank you^^
ReplyDeletetak jadi :/
ReplyDelete@Nur Madihah Terima kasih sbb bgi respon.. sy baru perasan ada coding yg tertinggal.. btw , awk boleh cuba buat semula.. sy dah betulkan :D
ReplyDeleteyeay ! jadi Alhamdulillah. thanks nurul. lame carik tuto ni ^^ boleh tengok kat blog kite
ReplyDeletehttp://caeshashi.blogspot.com/