
I found a plugin of Jquery named idTabs . With this script ,creating tabs is very simple . In addition ,this plugin has a lot of options for appearance of tabs . This is really awesome tabbing scripts.
to create tabs view with idTabs and Jquery,follow these steps :
1, idTabs is a plugin of Jquery framework ,so it can't work if Jquery is not installed in your web page . Jquery can be found here . Download Jquery and upload it to a host .
In your blogger template ,insert this line after ]]></b:skin>
<script type="text/javascript" src="url..../jquery.js"></script>
remember to change the url of jquery.js to the right
2,Download idTabs script at here . Upload it to a host and paste following line after the line above :
<script type="text/javascript" src="url/jquery.idTabs.min.js"></script>
remember to change the url of jquery.idTabs.min.js to the right
3, To add tabs view to your blogger , open your template in edit HTML mode ,choose where to add tabs and write code as this structure :
<ul class="idTabs">
<li><a href="#tab1">tab 1</a></li>
<li><a href="#tab2">tab 2</a></li>
</ul>
<div id="tab1">content of tab 1</div>
<div id="tab2">content of tab 2</div>
In this structure, any <a href="#tab"> inside of an element with class="idTabs" will show the element with id="tab" .
In this steps ,if you don't want to edit in HTML mode ,you can add a HTML/Javascript widget and paste the code above into widget content.
4, Ok,save template and you are done .
5,If you want to know more about idTabs and other options for tabs view ,you can go to this website . There are some interesting things you can do with this script ,and I hope it is the script you need .
good thanks
ReplyDeleteok, recent comments and how tabs will include the latest news
ReplyDelete@hardi : This is only instruction to make an appearance in tabs . To add recent posts ,you can search my post on "how to make recent post with thumbnail" ,and add the code of recent post to tab content .
ReplyDelete@nhamngahanh: Your name like vietnamese name
ReplyDeleteYou must inside this code before
ReplyDelete]]>
/*tabs*/
.tabs1 {
float:left;
margin-left:1px;
border-bottom: 1px solid #ddd;
}
.tabs2 {
float:left;
margin-left:1px;
}
.tab li,.tab2 li {
float:left;
}
.tab li a,.tab2 li a {
float:left;
padding:5px 10px;
border-right: 1px solid #ddd;
text-decoration:none !important;
font-family:Tahoma, Geneva, sans-serif;
text-transform:uppercase;
font-weight:900;
}
.tab {
width:300px;
float:left;
background:#F7F7F7 url(images/tbg.gif) bottom repeat-x;
border-top: 1px solid #ddd;
}
.tab2 {
width:386px;
float:left;
background:#F7F7F7 url(images/tbg.gif) bottom repeat-x;
}
.selected {
background:#fff;
}
#tabs1,#tabs2,#tabs3,#tabs4,#tabs5,#tabs6,#tabs2_2,#tabs2_3 {
float:left;
padding:15px;
width:230px;
}
#tabs1 ul li,#tabs2 ul li,#tabs3 ul li,.related,#tabs6 ul li {
float:left;
width:230px;
padding-bottom:5px;
margin-bottom:5px;
border-bottom: 1px solid #F2F2F2;
}
#tabs1_2 {
float:left;
padding:0 0 15px 15px;
width:371px;
}
#tabs1_2 a {
float:left;
display:inline-block;
padding:3px;
border:1px solid #ddd;
margin:10px 8px 0 0;
}
#tabs1_2 a:hover {
background:#ddd;
}
Because, not all theme support this..!!!
Is True?
@Kapuk online : yes ,it's true . It's the CSS section of template
ReplyDelete