日期:2014-05-17 浏览次数:20655 次
var xmlHttp;
function createXMLHttpRequest(){
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHttp");
}
else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}
}var currentpage=0;
function showfree(divno,cp){
createXMLHttpRequest();
var url="Loadfree?divno="+divno+"¤tpage="+cp;
xmlHttp.open("GET", url, true);
currentpage=cp;
xmlHttp.onreadystatechange = function(){callback(divno,cp);};
xmlHttp.send(null);
}
var txt;
function callback(divno,cp){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
txt="";alert(xmlHttp.responseText);
}}}