eristoddle
11/6/2012 - 6:30 PM

Hover based dropdown form jquery

Hover based dropdown form jquery

$('.fb-album').hover(
      		
	      function () {
	        pf_data.fb_list_hover = false;
	        $('.album-list').show();
	        $('.album-list').hover(
		        function () {
		          pf_data.fb_list_hover = true;
		          $('.album-list').show();
		          /*$('.album-list li').click(function () {
		            $('.album-list').hide();
		          });*/
		        },
		        function () {
		          $('.album-list').hide();
		          pf_data.fb_list_hover = false;
		        });
	      },
  	      
	      function () {
	      	var delay = function (time, callback) {
	          $.fx.step.delay = function () {};
	          return this.animate({
	            delay: 1
	          }, time, callback);
	      	}
	          
	        $('.album-list').delay(1000, function () {
	          if (!pf_data.fb_list_hover) {
	            $('.album-list').hide();
	          }
	        });
	      }
	      
      );