var ndivheight=$("#div1").height(); $("#div1").scroll(function(){ nheight=$(this)[0].scrollHeight; ntop=$(this)[0].scrollTop; if(ntop+ndivheight>=nheight){ }
var ndivheight=$("#div1").height(); $("#div1").scroll(function(){ nheight=$(this)[0].scrollHeight; ntop=$(this)[0].scrollTop; if(ntop+ndivheight>=nheight){ }