2013년 6월 11일 화요일

[JQuery] Loading Bar 만들기

이미 아는 사람들은 다아는 로딩바 원하는 형태로 만들기
사이트(http://www.ajaxload.info/)에서
좋은 Loading Indicator(Spinner)를 구한 다음에 아래와 같이 간단히 구현할 수 있다.

jQuery(function($){
        // Create img dom element and insert it into our document
        var loading = $('loading')
        .appendTo(document.body).hide();
        // Make the image appear during ajax calls
        $(window).ajaxStart(loading.show);
        $(window).ajaxStop(loading.hide);
});


참고적으로 요기 도 보아두면 좋아요~~
jQuery를 모르는 분들은 여기서 부터 시작하세요

<출처 : http://techbug.tistory.com/111 [데꾸벅님블로그]>

댓글 없음:

댓글 쓰기

문의하기

이름

이메일 *

메시지 *