主题:请求解码
var xml;
if (window.XMLHttpRequest) {
xml=new XMLHttpRequest();
}else if (window.ActiveXObject){
xml=new ActiveXObject("Microsoft.XMLHTTP");
}
xml.onreadystatechange = function(){
if(xml.readyState == 4){
if ( xml.status == 200 ){
var ret = xml.responseText;
var infoobj = fetch_object("infosec");
if (ret.indexOf('box') == -1){
infoobj.innerHTML = ret;
return;
}else{
infoobj.innerHTML = '';
}
for (var a=1;a <=5;a++){
for (var b=1;b <=9;b++){
var tp = 'box'+a+b;
var imgobj = fetch_object(tp);
if (ret.indexOf(tp) == -1){
imgobj.src='/images/game1/nogo.gif';
}else{
imgobj.src='/images/game1/gotit.gif';
}
}
}
if (ret.indexOf('graz1') >= 0){
infoobj.innerHTML = "恭喜!您中奖了!本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/graz.html';", 5000);
}else if (ret.indexOf('graz2') >= 0){
infoobj.innerHTML = "恭喜!您中奖了!本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/graz2.html';", 5000);
}else{
infoobj.innerHTML = "抱歉!祝您下次好运。本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/fail.html';", 5000);
}
}
}
}
var infoobj = fetch_object("infosec");
infoobj.innerHTML = '请稍待';
xml.open("GET" , "/product/trycenter.php?id=78&box=" + tobj.id + "&vcode=" + vcodeobj.value,true);
xml.setRequestHeader("If-Modified-Since","Sat, 14 Jan 2005 09:17:54 GMT");
xml.send("");
这是一个抽奖程序,我想知道它表示的实际位置在哪?怎么可以看出来呢?
请各位高人指教。
if (window.XMLHttpRequest) {
xml=new XMLHttpRequest();
}else if (window.ActiveXObject){
xml=new ActiveXObject("Microsoft.XMLHTTP");
}
xml.onreadystatechange = function(){
if(xml.readyState == 4){
if ( xml.status == 200 ){
var ret = xml.responseText;
var infoobj = fetch_object("infosec");
if (ret.indexOf('box') == -1){
infoobj.innerHTML = ret;
return;
}else{
infoobj.innerHTML = '';
}
for (var a=1;a <=5;a++){
for (var b=1;b <=9;b++){
var tp = 'box'+a+b;
var imgobj = fetch_object(tp);
if (ret.indexOf(tp) == -1){
imgobj.src='/images/game1/nogo.gif';
}else{
imgobj.src='/images/game1/gotit.gif';
}
}
}
if (ret.indexOf('graz1') >= 0){
infoobj.innerHTML = "恭喜!您中奖了!本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/graz.html';", 5000);
}else if (ret.indexOf('graz2') >= 0){
infoobj.innerHTML = "恭喜!您中奖了!本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/graz2.html';", 5000);
}else{
infoobj.innerHTML = "抱歉!祝您下次好运。本页面将在5秒后关闭";
self.setTimeout("document.location.href='/tryorder/fail.html';", 5000);
}
}
}
}
var infoobj = fetch_object("infosec");
infoobj.innerHTML = '请稍待';
xml.open("GET" , "/product/trycenter.php?id=78&box=" + tobj.id + "&vcode=" + vcodeobj.value,true);
xml.setRequestHeader("If-Modified-Since","Sat, 14 Jan 2005 09:17:54 GMT");
xml.send("");
这是一个抽奖程序,我想知道它表示的实际位置在哪?怎么可以看出来呢?
请各位高人指教。