日期:2014-05-20 浏览次数:20959 次
var XMLHttpReq;
function createXMLHttpRequest() {
if(window.XMLHttpRequest) {
XMLHttpReq = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
}
function findHotGift(num){
var scoreLow = "";
var scoreHigh = "";
scoreLow = "0";
scoreHigh = "20000";
var url1 = "";
if(num!=5){
url1 = "<%=path%>/getHotSaleList.do?gc.scoreLow="+scoreLow+"&gc.scoreHigh="+scoreHigh+"&gc.lastIndex=6×tamp="+Math.random();
}else{
url1 = "<%=path%>/getHotSaleList.do?gc.scoreLow="+scoreLow+"&gc.lastIndex=6×tamp="+Math.random();
}
createXMLHttpRequest();
XMLHttpReq.open("POST",url1,true);
XMLHttpReq.setRequestHeader("cache-control","no-cache");
XMLHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
XMLHttpReq.onreadystatechange= function(){
retHotGift();
}
XMLHttpReq.send(null);
}
function retHotGift(){
if (XMLHttpReq.readyState == 4) {
if (XMLHttpReq.status == 200) {
var tagonediv = document.all.Tagonediv;
tagonediv.innerHTML = XMLHttpReq.responseText;
} else {
}
}
}