$(window).scroll(function(){ //스크롤 이벤트 발생 시
var contentHeight = $('#content').height(); //content의 높이 변수 선언
var scrollValue = $(window).scrollTop(); //현재 scroll 위치 변수 선언
if(scrollValue> contentHeight){ //현재 scroll 위치가 content의 높이보다 높을 경우
$("#button").stop(); //이벤트 stop
} else {
$("#button").stop().animate({"top":scroll_move+"px"},1000); //button이 스크롤따라 움직임
}
});