소스 div 영역 스크롤시 자동으로 로딩하기
페이지 정보

본문
<script>
$("#view_list").scroll(function (e) {
s1 = $("#view_list").scrollTop();
h = $("#view_list")[0].scrollHeight - $("#view_list").height() - 20;
console.log(s1 + ":" + h);
if (s1 == h) {
$.post("<?=$board_skin_url;?>/view.skin.json.php", {"wr_id":<?=$view["wr_id"];?>}, function (e) {
$("#view_list").append(e);
});
}
});
</script>
<div id="view_list" style="width:390px;height:700px;overflow-y: scroll;">
</div>
[이 게시물은 최고관리자님에 의해 2022-05-20 22:28:06 소스코드에서 이동 됨]
첨부파일
-
view.skin.json.php (2.1K)
1회 다운로드 | DATE : 2022-04-20 21:11:00
- 이전글jquery 이용한 modal 폼 - 배경 까만색 창 띄우기 22.05.20
- 다음글프린트할 내용 입력받아서, 프린트 하기 21.12.08
댓글목록
등록된 댓글이 없습니다.