Submit your widget

Feature Complete jQuery Slide Out Info Bar

Created 14 years ago   Views 22196   downloads 4054    Author dave-earley
Feature Complete jQuery Slide Out Info Bar
View DemoDownload
130
Share |

The bar used jQuery to hide itself until someone click a small question mark on the top left of the page.

The box contains several drop down boxes which house info such as FAQs, Contact form, about us page and a few links.

Now to show you how it works.

First the jQuery

On page load the jQuery hides everything except a small image of a question mark on the top left side of the page. When a user clicks this image a box slides out (Like the image above). This box contains 4 links which when click will slide down and display the content within them.

Here is the actual jQuery :

<script type="text/javascript">

/*
Author     : Dave Earley
Author Url : http://Dave-Earley.com
Date       : 20th March 2010
*/

$(document).ready(function() {

$(".box_main").hide();
$('#menu ul').hide();

$('#menu li a').click(function() {

$(this).next().slideToggle('normal');

});

$('#box_link').toggle(

function() {
$('.box_main').show( function() {
$('.box_main').animate({
width: '300'
}, 500);
});
$('#box_img').attr("src", "close.png");

},

function() {
$('.box_main').animate({
width: "0"
}, 500, function() {
$('.box_main').hide();
$('#box_img').attr("src", "qm.png");

});

});

});
</script>

So there you have it, a nice jquery side bar to help users on your website.