mxzadmin/scripts/login.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Author: www.mxiaozheng.cn
*/
function isAdminName(obj) {
reg = /^[a-zA-Z0-9_]{6,20}$/;
if (!reg.test(obj)) {
return false;
} else {
return true;
}
}
function isAdminCipher(obj) {
reg = /^[a-zA-Z0-9_]{6,20}$/;
if (!reg.test(obj)) {
return false;
} else {
return true;
}
}
function isCheckCode(obj) {
reg = /^[0-9]{5}$/;
if (!reg.test(obj)) {
return false;
} else {
return true;
}
}
$("#a_name_tb").focus(function () {
var a_name = $(this).val();
if (a_name != "" && isAdminName(a_name)) {
$("#val_a_name_icon").attr({ src: "images/login/right.gif", alt: "恭喜!账号格式正确" }).show("slow");
$("#val_a_name_msg").removeClass("error").addClass("right").html("恭喜!账号格式正确").show("slow");
} else {
$("#val_a_name_icon").attr({ src: "images/login/error.gif", alt: "抱歉!账号格式不正确" }).show("slow");
$("#val_a_name_msg").removeClass("right").addClass("error").html("抱歉!账号格式不正确").show("slow");
}
});
$("#a_name_tb").blur(function () {
var a_name = $(this).val();
if (a_name != "" && isAdminName(a_name)) {
$("#val_a_name_icon").attr({ src: "images/login/right.gif", alt: "恭喜!账号格式正确" }).show("slow");
$("#val_a_name_msg").removeClass("error").addClass("right").html("恭喜!账号格式正确").show("slow");
} else {
$("#val_a_name_icon").attr({ src: "images/login/error.gif", alt: "抱歉!账号格式不正确" }).show("slow");
$("#val_a_name_msg").removeClass("right").addClass("error").html("抱歉!账号格式不正确").show("slow");
}
});
$("#a_cipher_tb").focus(function () {
var a_cipher = $(this).val();
if (a_cipher != "" && isAdminCipher(a_cipher)) {
$("#val_a_cipher_icon").attr({ src: "images/login/right.gif", alt: "恭喜!密码格式正确" }).show("slow");
$("#val_a_cipher_msg").removeClass("error").addClass("right").html("恭喜!密码格式正确").show("slow");
} else {
$("#val_a_cipher_icon").attr({ src: "images/login/error.gif", alt: "抱歉!密码格式不正确" }).show("slow");
$("#val_a_cipher_msg").removeClass("right").addClass("error").html("抱歉!密码格式不正确").show("slow");
}
});
$("#a_cipher_tb").blur(function () {
var a_cipher = $(this).val();
if (a_cipher != "" && isAdminCipher(a_cipher)) {
后面还有 73 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
