📄 dangky.js
字号:
/*
+------------------------------------------------------------
| Bactch72Club.NET
| =============================================
| by Vo Hien Lai
| (c) 2009 Bactch72Club.NET
| http://www.Bactch72Club.net
| =============================================
| Full name: Vo Hien Lai
| Address: Dien Ngoc, Dien Ban , Quang Nam
| Home phone: (84).510.944.298
| Mobi phone: (84).935.008.442
| Email: nhulai007@Gmail.Com
| Website: http://www.Bactch72Club.net
| =============================================
|
+------------------------------------------------------------
*/
function check_data(Forma) {
if (Forma.username.value == "") {
alert("Lỗi: Bí danh này không được chấp nhận.");
Forma.username.focus();
return false;
}
dc = Forma.username.value.length;
if(dc < 5){
alert("Lỗi: Bí danh quá ngắn");
Forma.username.focus();
return false;
}
if(dc > 30){
alert("Lỗi: Bí danh quá dài");
Forma.username.focus();
return false;
}
if (Forma.user_email.value == "") {
alert("Lỗi: email không được chấp nhận");
Forma.user_email.focus();
return false;
}
t = Forma.user_email.value.search("@");
k = Forma.user_email.value.search(" ");
if(k >= 0){
alert("Lỗi: Địa chỉ email này không được phép sử dụng");
Forma.user_email.focus();
return false;
}
if(t <= -1){
alert("Lỗi: Địa chỉ email này không được phép sử dụng");
Forma.user_email.focus();
return false;
}
if (Forma.user_password.value == "") {
alert("Lỗi: Bạn phải nhập mật khẩu.");
Forma.user_password.focus();
return false;
}
if (Forma.user_password.value != "") {
dp = Forma.user_password.value.length;
if(dp < 4){
alert("Lỗi: Mật khẩu quá ngắn. Mật khẩu của bạn phải lớn hơn 5 và nhỏ hon 15 ký tự");
Forma.user_password.focus();
return false;
}
if(dc > 15){
alert("Lỗi: Mật khẩu quá dài. Mật khẩu của bạn phải lớn hơn 5 và nhỏ hon 15 ký tự");
Forma.user_password.focus();
return false;
}
if (Forma.user_password.value != Forma.user_password2.value) {
alert("Lỗi: 2 mật khẩu dưa vào khác nhau. Hãy khai lại cho dúng!");
Forma.user_password.focus();
return false;
}
}
if (Forma.otviet.value == "") {
alert("Nhập câu trả lời ?");
Forma.otviet.focus();
return false;
}
return true;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -