메인메뉴 바로가기

HOME으로 가기


제이쿼리 제이쿼리 AJAX 로드시에 프리로딩화면 만들기

페이지 정보

profile_image
작성자 너갱이
댓글 0건 조회 3,025회 작성일 17-03-24 16:04

본문

$(document).ready(function () {​

 

// 프리로드박스 초기값 감추기

$('#preload').hide();

 

// ajax 구현될때마다 다음의 프리로딩 구현( $('#preload')​ 나타났다가 사라지기.

$('#preload').ajaxStart(function(){

 

$(this).fadeIn(500);

 

}).ajaxStop(function(){

 

$(this).fadeOut(300);

 

}); 

        }); 

댓글목록

등록된 댓글이 없습니다.