if ($("#AjaxResponsetWaitingCover").length == 0) {
var $newdiv1 = $('<div id="AjaxResponsetWaitingCover" style="display:none;"></div>');
$('body').append($newdiv1);
}
$(document).ajaxStart(function () {
var waitCover = $("#AjaxResponsetWaitingCover");
waitCover.height($("body").height());
waitCover.width($("body").width());
waitCover.show();
window.status = "Wait...";
});
$(document).ajaxStop(function (data) {
$("#AjaxResponsetWaitingCover").hide();
window.status = "Done";
});
#AjaxResponsetWaitingCover
{
display: block;
color: White;
background-color: Gray;
left: 0;
top: 0;
opacity: 0.0;
filter: alpha(opacity=0);
position: absolute;
width: 100%;
z-index: 9001;
cursor: wait !important;
}
0 comments:
Post a Comment