Kalau nak tengok contoh leh refer kat ruang chat box ai..kan ada chat-wawwi-follower-twitter..Tu la contoh tab yang ai nak tunjuk ni.
Korang yang minat nak mencuba..leh ikut step-step ni ok..sangat simple.
1)Macam biasa login blog –> design –> edit html
2)Search ]]></b:skin> kemudian copy code kat bawah dan pastekan betul-betul kat atas ]]></b:skin>
/* Tabbed Sidebar Widgets
--------------------------------- */
.widget-wrapper2{
border:1px solid #494e52;
background-color:#636d76;
padding:8px;
}
.widget-tab {
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-topright:5px;
-webkit-border-radius-bottomleft:5px;
-webkit-border-radius-bottomright:5px;
-webkit-border-radius-topright:5px;
background:#FFFFFF url(http://i195.photobucket.com/albums/z105/dantearaujo/tabcontentbg.gif) repeat-x scroll left bottom !important;
border:1px solid #CFCFCF;
font-family:Arial,Helvetica,sans-serif;
padding:15px !important;
}
.widget-tab ul {
margin:0px;
padding:0px 20px 0px 20px;
}
.widget-tab ul li {
list-style:none;
border-bottom:1px solid #d6dde0;
padding-top:10px;
padding-bottom:10px;
font-size:13px;
}
.widget-tab ul li:last-child {
border-bottom:none;
}
.widget-tab ul li a {
text-decoration:none;
color:#3e4346;
}
.widget-tab ul li a small {
color:#8b959c;
font-size:9px;
text-transform:uppercase;
font-family:Verdana, Arial, Helvetica, sans-serif;
position:relative;
left:4px;
top:0px;
}
.tab-content ul li a:hover {
color:#a59c83;
}
.tab-content ul li a:hover small {
color:#baae8e;
}
.active-tab{
background:#FFFFFF url(http://i195.photobucket.com/albums/z105/dantearaujo/tabtopbg.gif) repeat-x scroll left top !important;
border-color:#CFCFCF #CFCFCF #FFFFFF #CFCFCF !important;
border-style:solid !important;
border-width:1px 1px 2px !important;
color:#282E32 !important;
}
ul.tab-wrapper {
margin:0px; padding:0px;
margin-top:5px;
margin-bottom:6px;
}
ul.tab-wrapper li {
-webkit-border-radius-topleft:5px;
-webkit-border-radius-topright:5px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
background:#191919 url(http://i195.photobucket.com/albums/z105/dantearaujo/tabinactivebg.gif) repeat-x scroll left top;
border:1px solid #464C54;
color:#FFFFFF;
cursor:pointer;
display:inline;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:9px;
font-weight:bold;
line-height:2em;
list-style-image:none !important;
list-style-position:outside !important;
list-style-type:none !important;
margin-right:1px;
padding:8px 14px;
text-align:center;
text-decoration:none;
text-transform:uppercase;
}
3) Search /head.Pastu pastekan code kat bawah betul-betul kat atas /head
<!-- jQuery Call -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js' type='text/javascript'/>
<!-- End of jQuery Call –>
4)Pastu copy code kat bawah dan pastekan betul-betul selepas /head
<script type="text/javascript">
var starttab=0;
var endtab=2;
var sidebarname="sidebar1";
</script>
<script type="text/javascript" src="http://scriptabufarhan.googlecode.com/svn/trunk/bloggertabv1.0-min.js"></script>
5)Save
P/S:
1)Korang leh tukar nombor pada var ikut kedudukan widget korang.
var starttab=0;
var endtab=2;
var sidebarname="sidebar";
2)Pastu untuk var sidebarname tu korang letak id sidebar korang.
<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
3)Cara bilangan nombor widget korang
4) Semua widget kat sidebar perlu ada title,baru tab akan berfungsi dengan betul
| Category : Add Tabbed On Sidebar, Buat Tab pada Sidebar, Tutorial |
16 comments:
law yg gune template cam wan camne??
nak request tutorial boleh tak ? macam mana nak buat menu bar . menu bar saja .
@Wan_hazel,boleh je klu template cam wan pun..sesuai kat semua jnis template tab ni..try le wat yer..
Hadi Cemas,nak wat menu bar leh refer kat sini
http://www.lovejurnal.com/2010/05/buat-menu-kat-blogger.html
Visiting here friend, cool blog n n3..nice..Very special brought for u.. Check it out!
kakyong dah sembunyikan few widget.. template lama dulu penah buat tab bar ni.. pastu ade masa2 tertentu dia tak function... adeeyyy.. hangin sungguh.. tp nanti kalo teringin, kalo dtg ker sini erkkk..
hahaha... tu la dia, suka-suki nak mencuba..
Nak tnye, sidebar tu kene create yang baru ke cmne? macam saya ade sidebar(kanan) and left sidebar(yg kiri).
purpleross-->tak yah create yg baru..guna id salah satu sidebar..smada sidebar yg kanan atau yg kiri
this is fantastic! thxxx!!
nape wan tak leh eh.....tak dapat pun
wan xleh buat ker..sidebar id betul tak..sptutnya xde prob
smart lorrr mende alah niii..
nanti nk buat jugerkk.. :)
tunggu template baru...huhu
Memang best..Tapi bila nak post tutorialni utk wordpress lak..huhu
akak, koding atas ni ade error la, mybe akak ade tertinggal kod,
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The string "--" is not permitted within comments.
@suffer8zine try delete code ni
<!-- jQuery Call -->
<!-- End of jQuery Call –>
pastu save..kalau ada error lg bgtau yer..sebab akak dah try kt blog lain,takde prob..kdg2 comment query tu html xleh detect..
akk... kite da cube coding atas nie..
sama gak cam @suffet8zine...
mybe sbb
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.
xde closing dia kot...
Post a Comment