在AJAX页面显示Loading…
- hliang
- 0
- Posted on
直接贴代码:
#ajaxloading {
	right:0; 
	top:0; 
	width:130px; 
	position:fixed; 
	padding:10px; 
	text-align:center; 
	font-weight:bold; 
	background:#900; 
	color:#FFF;
} 
* html #ajaxloading {
	position:absolute; 
	right:16px;
}
/*only for ie*/ 
html {
	overflow:auto !important; 
	overflow:hidden;
}
正在加载,请稍候 ...
$(function() {
	$('#ajaxloading').ajaxStart(function() {
		$(this).show();
	});
	$('#ajaxloading').ajaxStop(function() {
		$(this).hide();
	});
});