Sunday, September 9, 2012

Colorful Tabs: A JQuery Menu For Blogger

Colorful Tabs: A JQuery Menu For Blogger

colourful jquery menu

After having published and designed over 100+ Navigation Menus for Blogger, both with horizontal and vertical list view, today we would like to share a beautiful menu that has remained the favorite choice of all Techedian clients so far. This menu changes color for each tab on mouse hover. It uses simple JavaScript functions to produce neat and clean transition effects. Instead of displaying the sub menu items in traditional vertical drop down list, we aligned them with one another to fit into a single line. Unlike other menus, this widget would easily fit any BlogSpot template without design conflicts. It is positioned at the top most section of your blog to attract readers the most. The installation steps are fun to try and extremely easy. The Menu works fine on all major browsers i.e: IE7+, Safari, Chrome, Mozilla and Opera.  Lets add it to your blogs and get rid of any existing bulky menu that proved no less than a trouble.

If you are interested to learn how to create a menu from scratch and add Jquery effects to it then read the previous part of this series.
Navigation Menu Tutorials
4. Create Animated Drop Down Menu With CSS3 Transitions - Coming Soon..
6. Colorful Tabs: A JQuery Menu For Blogger

Add it to blogger

  1. Go To Blogger > Template
  2. Backup your template
  3. Click Edit HTML > Proceed
  4. Search For <head> and just below it paste these scripts:
<script src='http://techedian.blogspot.in.googlecode.com/files/jquery-pack-colourful.js' type='text/javascript'></script>
    <script src='http://techedian.blogspot.in.googlecode.com/files/jcarousel-colourful.js' type='text/javascript'> </script>
    <script src='http://techedian.blogspot.in/files/mt-colourful.js' type='text/javascript'></script>
    5.   Now search for the body class. i.e: Looks similar to this with some code inside it

body {
----
---
)

Inside this class paste the following values:

body { 
margin:0px
padding:0px;
---
---
       6.   Next search for this:
<body>
or this:

<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>
  
7.   Just below it paste the following compressed code:

<!--START OF COLOURFUL TABS BY TECHEDIAN-->
<style>
/*------- Colourful Tabs Menu by http://techedian.blogspot.in/ -------*/
.TECHEDIAN-Nav-container {
border: 1px solid #cfcfcf;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsiLqeham3WnGbblTm1HsQXS3AtHEliGepNuowdkI83YqwUkWCTVZvVPWPyBtsxGcnGLUSSySdghARNHA1ByjevgSYVhlPw0ipzzBggSDiPukTADu6Vo-buPtT3jgTxua_iz_43zNQlPQ/s400/menu-bgd.png) bottom left repeat-x;
    position: relative;
      margin: 0;  padding: 0;
border: 1px solid #cfcfcf;
}
ul#nav {
    border-left: 1px solid #cfcfcf;
        border-right: 0px solid #cfcfcf;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsiLqeham3WnGbblTm1HsQXS3AtHEliGepNuowdkI83YqwUkWCTVZvVPWPyBtsxGcnGLUSSySdghARNHA1ByjevgSYVhlPw0ipzzBggSDiPukTADu6Vo-buPtT3jgTxua_iz_43zNQlPQ/s400/menu-bgd.png) bottom left repeat-x;
    position: relative;
    font-size: 12px; font-family: helvetica, arial, sans-serif;
    list-style: none;  margin: 0 auto;  padding: 0;
    width: 960px;
}
#nav ul {
     margin: 0;
   
}
:focus {
    outline: 0;
}
*html ul#nav { clear: both; height: 1%; }
ul#nav li a {
    display: block;
    float: left;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 33px;
    padding: 0 13px 0 10px;
    color: #333;
    text-decoration: none;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhASRzkdpuFk9-lya10qdti6p3Vlt4RpkjYEUVWNQv9QdBlAlzoizB6SHmBedWbF0IvaeKzdHxMZMSxdbbNLuXErpvRiEsC5R7NLmd1wPIjH3ZrESIEdGdQEuGvlCA3w1EEwsSOncCph2o/s400/menu-rule.png) right 2px no-repeat;
}
*html ul#nav li.top-link { float: left; margin: 0px 0 -13px 0; padding-top: 2px; }
*:first-child+html ul#nav li.top-link { float: left; margin: 0px 0 -13px 0; padding-top: 2px; }
ul#nav li a:hover, ul#nav li a.open { color: #fff; }
ul#nav li#techedian a:hover, ul#nav li#techedian a.open { background: #0f1f37; }
ul#nav li#link-entertainment a:hover, ul#nav li#link-entertainment a.open { background: #b70943; }
ul#nav li#link-news a:hover, ul#nav li#link-news a.open { background: #cf3c02; }
ul#nav li#link-life a:hover, ul#nav li#link-life a.open { background: #724375; }
ul#nav li#link-technology a:hover, ul#nav li#link-technology a.open { background: #02b0cf; }
ul#nav li#link-top10 a:hover, ul#nav li#link-top10 a.open { background: #353533; }
ul#nav li#links-1 a:hover, ul#nav li#links-1 a.open { background: #b70943; }
ul#nav li#links-2 a:hover, ul#nav li#links-2 a.open { background: #289728; }
ul#nav li#links-3 a:hover, ul#nav li#links-3 a.open { background: #666666; }
ul#nav li#links-4 a:hover, ul#nav li#links-4 a.open { background: #b70943; }

ul#nav li#link-home a {
    padding: 0 33px 0 10px;
    text-indent: -9999px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0lf2A0ZZIwZTf43iCUyXaoOWubWfrIe1YuZEOubS83-pB77HvzX6ahULLOE5cFrO9wjSCA9jklTk3P5n9PrKeBHOrjM6B4N6phc2RyfOO2izEZESRAeaicw7YJ9H5ScYgoVH1AaUxZQ/s400/home-icon.png) right 0px no-repeat;
}
*html ul#nav li#link-home a { padding: 0; width: 43px; }
ul#nav li#link-home a:hover { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0lf2A0ZZIwZTf43iCUyXaoOWubWfrIe1YuZEOubS83-pB77HvzX6ahULLOE5cFrO9wjSCA9jklTk3P5n9PrKeBHOrjM6B4N6phc2RyfOO2izEZESRAeaicw7YJ9H5ScYgoVH1AaUxZQ/s400/home-icon.png) right -33px no-repeat; }
/* Sub-Vertical Navigation */
ul.sub-nav {
    position: absolute;
    top: 33px;
    left: -1px;
    overflow: hidden;
    width: 960px;
    display: none;
    z-index: 999;
list-style: none;
  padding-left:0px;
}
ul#nav li#techedian ul.sub-nav { background: #6f7987 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGRyPPLAfF8-HHThGrOzha8CSCT3o9A5rzDujPxiTtuPakXaiormtIkY7fkNEw-cxTJcgA91C9Wx22s78hoSwti0tODAEF67Iv1p2LMnvV9tvBLwGtbnW3DqrZMo5_jsyWqNxO6N5zQRw/s400/business-subnav-bgd.png) top left repeat-x; }
ul#nav li#link-entertainment ul.sub-nav { background: #d46b8e url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbYZlpm21xIFK_bGFM6-GtC2LATA6cT8vJW5DdeWaj4RWPP8FK8qzbSVlcABk_cfFyIur6c0CTowjXoSk9zbWTgwPuF3pkTShf3e33Yk6QWmimtU5EJbF76OMJWvd4soTdE4bXOgc9bOY/s400/entertainment-subnav-bgd.png) top left repeat-x; }
ul#nav li#link-news ul.sub-nav { background: #e28a67 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHIic__1-UY14EtqfQgZ02llV6TG2oGbpNzrz9ra33wVdZYjEU69cLbQelzh7XLptwpYRKH1_qXooS75deMWKP4uM_IXnYkJyPQz4WUS3Nbftt4dP_BK8ZReZntv2fK4v8yd1Qc2WYXFg/s400/news-subnav-bgd.png) top left repeat-x; }
ul#nav li#link-life ul.sub-nav { background: #aa8eac url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqLf_fWX8ejTwottAi2tzuPtoxyUErjZ05yba3aInHJWOS5D0iKS4h20I-NwgKTtQloa3328nOd5lXnS8GJBpuQQOLth9k51XNcRXim5wmIB4eOQSmdg8KDrL1KLcQTwK0of0y3TSuwuU/s400/life-subnav-bgd.png) top left repeat-x; }
ul#nav li#link-technology ul.sub-nav { background: #67d0e2 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5Rn-1gP5pyCyxMsObVhig3DO1UC-EI-djPeJ2-RZZWLXObWdG9nGG-SGccJ766buuRvGi6sTGewu6ozfifCX0TAw6MOF_na-7AmEDGaTuHdIfCn3icloRP9js6MT5sn8z12It8GJNaiQ/s400/technology-subnav-bgd.png) top left repeat-x; }
ul#nav li ul.sub-nav li { float: left;   }
ul#nav li ul.sub-nav li a {
    float: none;
    background: none;
    font-size: 11px;
    text-transform: none;
    color: #fff;
    line-height: 25px;
}
ul#nav li#techedian ul.sub-nav li a:hover, ul#nav li#techedian ul.sub-nav li a.active-cat{ background: #0f1f37 !important; }
ul#nav li#link-entertainment ul.sub-nav li a:hover, ul#nav li#link-entertainment ul.sub-nav li a.active-cat { background: #b70943 !important; }
ul#nav li#link-news ul.sub-nav li a:hover, ul#nav li#link-news ul.sub-nav li a.active-cat { background: #cf3c02 !important; }
ul#nav li#link-life ul.sub-nav li a:hover, ul#nav li#link-life ul.sub-nav li a.active-cat { background: #724375 !important; }
ul#nav li#link-technology ul.sub-nav li a:hover, ul#nav li#link-technology ul.sub-nav li a.active-cat { background: #02b0cf !important; }
</style>
<div class='TECHEDIAN-Nav-container'>
<ul id='nav'>
               
               <li class='non-vertical-link top-link' id='link-home'><a class='open' href='#'>Home</a></li>

                <li class='top-link' id='techedian'><a href='#'>TAB 1</a>
                    <ul class='sub-nav'> 
                    <li><a href='#'>SUB TAB 1.1</a></li>
                    <li><a href='#'>SUB TAB 1.2</a></li>
                    <li><a href='#'>SUB TAB 1.3</a></li>
                    <li><a href='#'>SUB TAB 1.4</a></li>
                    </ul>
                </li>

                <li class='top-link' id='link-entertainment'><a href='#'>TAB 2</a>
                    <ul class='sub-nav' style='display: none;'> 
                    <li><a href='#'>SUB TAB 2.1</a></li>
                    <li><a href='#'>SUB TAB 2.2</a></li>
                    <li><a href='#'>SUB TAB 2.3</a></li>
                    <li><a href='#'>SUB TAB 2.4</a></li>
                    <li><a href='#'>SUB TAB 2.5</a></li>
                    </ul>
                </li>

                <li class='top-link' id='link-news'><a href='#'>TAB 3</a>
                    <ul class='sub-nav' style='display: none;'> 
                    <li><a href='#'>SUB TAB 3.1</a></li>
                    <li><a href='#'>SUB TAB 3.2</a></li>
                    <li><a href='#'>SUB TAB 3.3</a></li>
                    <li><a href='#'>SUB TAB 3.4</a></li>
                    </ul>
                </li>

                <li class='top-link' id='link-life'><a href='#'>TAB 4</a>
                    <ul class='sub-nav' style='display: none;'> 
                    <li><a href='#'>SUB TAB 4.1</a></li>
                    <li><a href='#'>SUB TAB 4.2</a></li>
                    <li><a href='#'>SUB TAB 4.3</a></li>
                    <li><a href='#'>SUB TAB 4.4</a></li>
                    <li><a href='#'>SUB TAB 4.5</a></li>
                    <li><a href='#'>SUB TAB 4.6</a></li>
                    <li><a href='#'>SUB TAB 4.7</a></li>
                    </ul>
                </li>

                <li class='top-link' id='link-technology'><a href='#'>TAB 5</a>
                    <ul class='sub-nav' style='display: none;'> 
                    <li><a href='#'>SUB TAB 5.1</a></li>
                    <li><a href='#'>SUB TAB 5.2</a></li>
                    <li><a href='#'>SUB TAB 5.3</a></li>
                    <li><a href='#'>SUB TAB 5.4</a></li>
                    <li><a href='#'>SUB TAB 5.5</a></li>
                    </ul>
                </li>

<li class='non-vertical-link top-link' id='link-top10'><a href='#'>TAB 6</a></li>

<!--
<li class='non-vertical-link top-link' id='links-1'><a href='#'>TAB 7</a></li>
-->
<!--
<li class='non-vertical-link top-link' id='links-2'><a href='#'>TAB 8</a></li>
-->
<!--
<li class='non-vertical-link top-link' id='links-3'><a href='#'>TAB 9</a></li>
-->
<!--
<li class='non-vertical-link top-link' id='links-4'><a href='#'>TAB 10</a></li>
-->
               

                  <li style='clear: both;'/>
            </ul>
</div>
<!--END OF COLOURFUL TABS BY TECHEDIAN-->

  8.  Hit Save and all done!

Visit your blogs to see a complete new change to the site layout. The menu will blend both light and dark themes. Have fun. :)

Customizations Guide:

The code is written in a neat way so that any one may easily change, add or delete the tabs.
  • Replace # with URL of the page and replace TAB names with Page Title
  • To change the width of the menu edit width: 960px
  • To create a new tab in any sub menu simple paste this code above </ul>
<li><a href='#'>SUB TAB</a></li>
  • Tab 7 to Tab 10 are disabled. If you want to activate any one of it then simply remove the comment tags across it. i.e <!-- before it and --> after it
  • For more customization tips, just post me a comment!

Is it SEO friendly?

Simple CSS and HTML menus are way better than flash menus because they use the hyperlink tag along with anchor text. Search engines crawl them better and they appear clearly in SITE LINKS. This menu has everything that robots would love. It has a Clear structure and uses no fancy Jquery functions which could lead to High load time.

Credits

The menu design is inspired from blogs.com, scripts and code structure is made compatible with blogger by T(techedian)- blog. You are most welcomed to redistribute the code as long as you attach attribution and credits back to this page.

Need help?

The code is self explanatory and would not trouble many of you. However if you want to further customize the menu then you are most welcomed to ask us for any help needed. Please always share your BLOG URL while posting. I hope this little effort may prove helpful for most of you. Thank you for taking time and reading this tutorial. Peace and blessings pals. :)
 

Pages

About Me

Bookmark & Share