日期:2014-05-17 浏览次数:20884 次
<html>
<head>
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<script type="text/javascript">
var req;
function createXmlHttp() {
try {
return new XMLHttpRequest();
} catch (e1) {
try {
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e2) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (e3) {
return null;
}
}
}
}
function getPage(path) {
req = createXmlHttp();
if (req) {
req.onreadystatechange = hdlRsp;
req.open("GET", path, true);
req.send(null);
} else {
alert("浏览器不支持!");
}
}
function hdlRsp() {
if (req.readyState == 4 && req.status == 200) {
&nbs