-->
Home » » Stylish Jquery Animated Tabs Widget for Blogger

Stylish Jquery Animated Tabs Widget for Blogger


Tab widgets always help to save website space.In this tutorial im gonna explain how to add Unique juery tab widget for blogger.We can use add few pages for tab widgets.jQuery tabs are very stylish and very popular for blogging.This is a simple jquery tab widget.I used Css and jQuery to make this widget.This tab widget work with every modern web browsers.However its not work with IE. you can take a look at in demo page to get idea how it works. 

Jquery+Animated+Tabs+Widget

How to add Jquery Animated Tabs Widget to Blogger


1. Go to Blogger Dashboard > Template
2. Find ]]></b:skin>
3. Paste below code just below it.

<style>
.b, .c{ display:none;}
.buttons{
    border-bottom:solid #d1c8b8 4px;
    display:block;
    padding:8px;
    width:80px;-moz-border-radius: 1em 4em 1em 4em;
    border-radius: 1em 4em 1em 4em;
    text-align:center;
    margin:1px;
    background:#4b7975;
    text-decoration:none; color:#FFFFFF;
    float:left;font-family:Georgia, "Times New Roman", Times, serif; font-size:14px
}
.buttonHover{background:#86b8b4;border-bottom:solid #FF0000 4px;}
a.buttons:hover{background:#86b8b4;border-bottom:solid #FF0000 4px;}
#multitab {
    background:#919b9d;
    text-align:justify;
    overflow:hidden;
    color:#fff;
    padding:20px;
    -moz-border-radius: 1em 4em 1em 4em;
    border-radius: 1em 4em 1em 4em;    height:200px;
    width:272px;
}
#multwrap{
    text-align:left;
    overflow:hidden;
    width:350px;
    height:380px;
}
  </style>

<script type='text/javascript'>
// <![CDATA[
$(document).ready(function() {
    $("#first-tab").addClass('buttonHover');
});
function navigate_tabs(container, tab)
{  
    $(".b").css('display' , 'none');
    $(".c").css('display' , 'none');
    $(".a").css('display' , 'none');
  
    $("#first-tab").removeClass('buttonHover');
    $("#second-tab").removeClass('buttonHover');
    $("#third-tab").removeClass('buttonHover');
  
    $("#"+tab).addClass('buttonHover');
    $("."+container).show('slow');
}
// ]]>
</script>
<script charset='utf-8' src='https://bloggertrixcode.googlecode.com/files/jquery1.2.6.js' type='text/javascript'/> 
4. Now go to blogger Layout
5. Click Add Gadget and select 'HTML/Javascript'
6. Paste below code.
<div id="multwrap">
 <a href="javascript:navigate_tabs('a','first-tab');" class="buttons" id="first-tab">Tab 1</a>
<a href="javascript:navigate_tabs('b','second-tab');" class="buttons" id="second-tab">Tab 2</a>
<a href="javascript:navigate_tabs('c','third-tab');" class="buttons" id="third-tab">Tab 3</a>
   <br clear="all" />
      <div id="multitab" align="center">
          <div class="a">
                <em>B</em>logger is a blog-publishing service that allows private or multi-user blogs with time-stamped entries. It was developed by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com.  <br />  <br /> Thanks!

                </div>
                <div class="b"><em>L</em>orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

                </div>
                <div class="c"><em>S</em>tarting in February 2013 Blogger began integrating user blogs with multiple country specific URL addresses i.e. exampleuserblogname.blogspot.com would be automatically redirected to exampleuserblogname.blogspot.ca in Canada, exampleuserblogname.blogspot.co.uk in the United Kingdom etc. </div>
</div> </div>
</div>
Note:  You can past any text or code  with replacing above 3 different texts.

7. Now save your HTML/Javascript'.
You are done. If you have any problem related to this Jquery Animated Tabs Widget. Just leave a comment.I will help to you.

0 comment:

Post a Comment

Back To Top