特定の位置に来た時に処理
$(window).scroll(function(){ //ウィンドウの表示領域を取得 scrollHeight = $(window).height(); //スクロール時の条件 if(scrollHeight ){ //処理 } });