[How to] Add Red Sliding Horizontal Menu Bar with jQuery [Tutorial]


Hey Blogger friends,You must be using any menu bar on your blog?? If not then you must try this Red Sliding Horizontal Menu Bar with Jquery for your blog.It gives a professional looks to your web-blog.Using a good looking and simple Navigation menu bar helps your visitor to navigate easily in your blog.

This navigation bar looks like (see below picture or Visit This blog to see the DEMO)

So the Tutorial for How to Add Red Sliding Horizontal Menu Bar with jQuery goes here

Login to your Blogger Dashboard->Design->Edit HTML
Now find the following code


paste the following code just above the finded code

<style type=’text/css’>
ul#topnav {
margin: 10px 0 20px;
padding: 0;
list-style: none;
font-size: 1.1em;
clear: both;
float: left;
width: 99%;
ul#topnav li{
margin: 0;
padding: 0;
overflow: hidden;
float: left;
ul#topnav a, ul#topnav span {
padding: 10px 20px;
float: left;
text-decoration: none;
color: #fff;
text-transform: uppercase;
clear: both;
height: 20px;
line-height: 20px;
background: #1d1d1d;
ul#topnav a { color: #7bc441; }
ul#topnav span {
display: none;

ul#topnav.v2 span{
background: url(http://4.bp.blogspot.com/_ar9PeTUrwMY/SurvAv9Rh3I/AAAAAAAAAzg/6yumbEnfpmA/a_bg.gif) repeat-x left top;
ul#topnav.v2 a{
color: #555;
background: url(http://4.bp.blogspot.com/_ar9PeTUrwMY/SurvAv9Rh3I/AAAAAAAAAzg/6yumbEnfpmA/a_bg.gif) repeat-x left bottom;
<script src=’http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js’ type=’text/javascript’/>
<script type=’text/javascript’>

$(document).ready(function() {

$(&quot;#topnav li&quot;).prepend(&quot;<span/>&quot;); //Throws an empty span tag right before the a tag

$(&quot;#topnav li&quot;).each(function() { //For each list item…
var linkText = $(this).find(&quot;a&quot;).html(); //Find the text inside of the a tag
$(this).find(&quot;span&quot;).show().html(linkText); //Add the text in the span tag

$(&quot;#topnav li&quot;).hover(function() { //On hover…
marginTop: &quot;-40&quot; //Find the span tag and move it up 40 pixels
}, 250);
} , function() { //On hover out…
marginTop: &quot;0&quot; //Move the span back to its original state (0px)
}, 250);


Now Preview It.And Save if its FINE.

Now go to Page elements in DESIGN and CLICK Add a gadget->HTML/Java Script
And paste the following code in it

<div class=”container”>

<ul id=”topnav” class=”v2″>
<li><a href=”LINK1″>LINK Name</a></li>
<li><a href=”LINK2″>LINK Name</a></li>

<li><a href=”LINK3″>LINK Name</a></li>
<li><a href=”LINK4″>LINK Name</a></li>
<li><a href=”LINK5″>LINK Name</a></li>
<li><a href=”LINK6″>LINK Name</a></li>
<li><a href=”LINK7″>LINK Name</a></li>


Edit The Links and save it…..Enjoyed post tell me… 


Leave a Reply