var objXmlHttp = null;
function DoSend(url)
{
var strUser = document.getElementById("username").value;
var strPwd = document.getElementById("password").value;
setTimeout("dodo('"+url+"','"+strUser+"','"+strPwd+"')",80);
}
function dodo(url, struser, strpwd)
{
var objXmlHttp = new ActiveXObject('MICROSOFT.XMLHTTP');
try
{
objXmlHttp.open("GET", "" + url, false, struser, strpwd);
objXmlHttp.send();
if (objXmlHttp.status =="200" && objXmlHttp.readyState ==4) {
window.location.href = "";
}
else
{
alert("请输入正确的账号密码!");
return false;
}
}
catch (em)
{
alert(em.message);
}
}
阅读(1233) | 评论(0) | 转发(0) |