111,120
社区成员
发帖
与我相关
我的任务
分享
<script language="javascript" type="text/javascript">
var xmlHttp;
//创建xmlHttpRequest对象
function createXMLHttpRequest(){
if(window.ActiveXObject)
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); //兼容IE浏览器
else if(window.XMLHttpRequest)
xmlHttp=new XMLHttpRequest(); //兼容Firefox浏览器
}
function htmer_loading(){
createXMLHttpRequest();
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4&&xmlHttp.status==200)
document.getElementById("show").innerHTML=xmlHttp.responseText; //若响应完成,则显示htmer.asp中的内容
else
document.getElementById("show").innerHTML="<div align='center'><img src='images/loading.gif' /> Loading......</div>"; //若响应未完成,则显示Loading
}
xmlHttp.open("GET","htmer.asp",true);
xmlHttp.send(null);
}
</script>