87,907
社区成员
发帖
与我相关
我的任务
分享
//验证码刷新函数
function captchaRefresh()
{
alert( "captchaRefresh" );
$( "#img-captcha" ).src = $( "#img-captcha" ).src +"?random="+ Math.random();
captchaIsTrue = false;
$( "#captcha" ).attr( "value", "" );
$( "#info" ).html( "请输入验证码" );
}
//验证码刷新事件
$( "#img-captcha" ).bind( "click", captchaRefresh );
//登陆验证-回调函数
function loginCallback( xml )
{
var output = $( xml ).find( "root" ).find( "result" ).text();
if( output == "登陆成功" )
{
location.href = "DrawCaptcha";
}
else
{
$( "#info" ).html( output );
captchaRefresh();
}
}