日期:2014-05-16  浏览次数:20575 次

Ajax等待

ajaxAnywhere.showLoadingMessage = function() {

??? var img = document.getElementById("myImg");

??? if (img == null) {

??????? img = document.createElement("img");

??????? document.body.appendChild(img);

?

??????? img.id = "myImg";

?

??????? img.src = "balls.gif";

??????? img.style.position = "absolute";

??????? img.style.border = "1 solid black";

??????? img.style.top = 0;

??????? img.style.left = document.body.offsetWidth - 170;

??? }

??? img.style.display = "";

}

?