function ShowResut()//显示结果
{
if(xmlHttp.readyState == 1)//表示正在加载
{
document.getElementById("pgr").innerHTML ="正在加载....请稍等";
}
if(xmlHttp.readyState == 4 && xmlHttp.status == 200)//请求处理完成
{
document.getElementById("pgr").innerHTML ="";
//do somthing here
}
}
再拖个DIV对应就可以了。具体放什么位置,看自己喜好。
<div style="COLOR: white; BACKGROUND-COLOR: red" id="pgr">
</div>