Follow Ohmkumar on Twitter
21
Dec/09
0

Toggle effect for fade – with jQuery

jQuery
Write the below function first:

jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

After that you can do as usual like:

$(".main").click(function () {
$(".child").fadeToggle("slow");
});

26
Aug/08
0

Accordion Javascript

Light weight Accordion Javascript

Accordion

One of the smallest accordion script which is extremely simple and easy to integrate. Does’nt require any framework and fully cross-browser compatible.

Downoad

Demo