Return to Snippet

Revision: 28773
at July 14, 2010 04:14 by ivorpad


Initial Code
//Set the fadeToggle function
        $.fn.fadeToggle = function(speed) {
	   return this.animate({opacity: 'toggle'}, speed);
	};
       
        //Execute the plugin
	$('div#workContent').hide();
	$("a.allContent").click(function(){
		$("div#workContent").fadeToggle(150);
		$(this).toggleClass("active");
		return false;
	});
	$("a.closecontent").click(function () {
		$("div#workContent").fadeToggle(150);
		return false;
	});

Initial URL
http://groups.google.com/group/jquery-en/tree/browse_frm/thread/bd9ab1487def3fc8/a24286723ec3ab98?rnum=1&_done=/group/jquery-en/browse_frm/thread/bd9ab1487def3fc8?&pli=1

Initial Description

                                

Initial Title
fadeToggle - 3 lines - jQuery Plugin

Initial Tags
plugin, jquery

Initial Language
JavaScript