글
이미 아는 사람들은 다아는 로딩바 원하는 형태로 만들기 사이트(http://www.ajaxload.info/)에서 좋은 Loading Indicator(Spinner)를 구한 다음에 아래와 같이 간단히 구현할 수 있다.
 
jQuery(function($){
// Create img dom element and insert it into our document
var loading = $('<img alt="loading" src="/images/loading.gif" />')
.appendTo(document.body).hide();
// Make the image appear during ajax calls
$(window).ajaxStart(loading.show);
$(window).ajaxStop(loading.hide);
});
 
 
참고적으로 요기도 보아두면 좋아요~~
jQuery를 모르는 분들은 여기서 부터 시작하세요
            
                    
                    
jQuery(function($){
// Create img dom element and insert it into our document
var loading = $('<img alt="loading" src="/images/loading.gif" />')
.appendTo(document.body).hide();
// Make the image appear during ajax calls
$(window).ajaxStart(loading.show);
$(window).ajaxStop(loading.hide);
});
참고적으로 요기도 보아두면 좋아요~~
jQuery를 모르는 분들은 여기서 부터 시작하세요
'JS > jquery' 카테고리의 다른 글
| 스크롤 페이징(Scroll Paging, Continuous scrolling pattern) (0) | 2012.01.16 | 
|---|---|
| How to Mimic the iGoogle Interface (0) | 2009.03.01 | 
| The 20 Most Practical and Creative Uses of jQuery (0) | 2009.02.27 | 
| jQuery Plugin (0) | 2009.02.23 | 
| jQuery 링크에 걸린 파일 사이즈 자동으로 알아내기 (0) | 2009.01.05 | 
| Test if jquery has loaded (0) | 2009.01.05 | 
| IE를 위해 코딩할때 (0) | 2009.01.05 | 
| CSS Text Gradients (0) | 2009.01.04 | 
| jQuery 강좌 링크 (0) | 2008.12.14 | 
| InnerFade with JQuery (0) | 2008.12.14 | 
							
				
RECENT COMMENT