// Loading div
var I="数据处理中,请稍后...";
var J=document.createElement("DIV");
document.body.appendChild(J);
J.id="loadingDiv";
J.innerHTML="
";
J.style.position="absolute";
J.style.textAlign="center";
J.style.padding="20px 15px";
J.style.border="2 solid #A5BADE";
J.style.color="#2b6188";
J.style.backgroundColor="#ffffff";
//J.style.width="204px";
J.style.heigth="150px";
J.style.fontFamily="Arial, Helvetica, sans-serif";
J.style.fontWeight="bold";
J.style.fontSize="12px";
J.style.zIndex="9999";
// Set top margin
var indicatorTop = overlay_top_pos;
var indicatorLeft = overlay_left_pos;
$(J).css('left', (indicatorLeft + (($(C).width() - parseInt($(J).width())) / 2)).toString() + 'px');
$(J).css('top', (indicatorTop + (($(C).height() - parseInt($(J).height())) / 2)).toString() + 'px');
// Show the overlay
$("#overlayDiv").show();
$("#loadingDiv").show();
};
var I="数据处理中,请稍后...";
var J=document.createElement("DIV");
document.body.appendChild(J);
J.id="loadingDiv";
J.innerHTML="
![]() |
"+I+"
|
J.style.position="absolute";
J.style.textAlign="center";
J.style.padding="20px 15px";
J.style.border="2 solid #A5BADE";
J.style.color="#2b6188";
J.style.backgroundColor="#ffffff";
//J.style.width="204px";
J.style.heigth="150px";
J.style.fontFamily="Arial, Helvetica, sans-serif";
J.style.fontWeight="bold";
J.style.fontSize="12px";
J.style.zIndex="9999";
// Set top margin
var indicatorTop = overlay_top_pos;
var indicatorLeft = overlay_left_pos;
$(J).css('left', (indicatorLeft + (($(C).width() - parseInt($(J).width())) / 2)).toString() + 'px');
$(J).css('top', (indicatorTop + (($(C).height() - parseInt($(J).height())) / 2)).toString() + 'px');
// Show the overlay
$("#overlayDiv").show();
$("#loadingDiv").show();
};
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26128332/viewspace-706565/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26128332/viewspace-706565/