$('#version2').click(function(){

version2();

});


이걸로 함수 호출해서


function version2(){

  $('.thumbnail').mouseenter(function() { 

  $(this).animate({

          height: '+=100px'

          

      });

 

  });

 

  $('.thumbnail').mouseleave(function() {

  $(this).animate({

          height: '-=100px'  

      });

  });

 

});

}

}(jQuery);


이게 해당 함수임 근데 ㄴㅁ 클릭 1번하면 height가 100, 2번하면 200. 3번하면 300px씩 조정되네