﻿
      function createXMLHttpRequest()
{

	//判断是否是windows浏览器
	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				xmlHttp = false;
			}
		}
	}
	//other
	if (!xmlHttp)
	{
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			xmlHttp = false;
		}
	}
	return xmlHttp;
}

//开始函数

function NoticestartRequest() {
document.getElementById("scrollDiv").innerHTML="正在加载........请稍后...........";
createXMLHttpRequest();
//指定当readyState属性改变时执行的函数
xmlHttp.onreadystatechange = handleStateChange;

　//创建一个新的http请求，并指定此请求的方法、URL以及验证信息
　var url="../List/NoticeJs.aspx";
xmlHttp.open("GET", url, true);
//发送请求到http服务器并接收回应
xmlHttp.send(null);

}
function handleStateChange() {
　//4数据接收完毕
if(xmlHttp.readyState == 4) {
//200返回请求状态为OK
if(xmlHttp.status == 200) {
　　　//弹出对话框，并输入simpleResponse.xml文件的文本内容
document.getElementById("scrollDiv").innerHTML=xmlHttp.responseText;
}
}
}


