<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0075)http://passport.cnblogs.com/register.aspx?ReturnUrl=http://www.cnblogs.com/ -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>
新用户注册
</title><link href="reset.css" type="text/css" rel="Stylesheet"><link rel="stylesheet" type="text/css" href="screen_base.css">
<link rel="stylesheet" type="text/css" href="register.css">
<link rel="stylesheet" type="text/css" href="validate.css">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="framework.js"></script>
<script type="text/javascript" src="val.js"></script>
<script type="text/javascript">
$(function() {
$('#aspnetForm').formValidator();
$('#ctl00_holderLeft_txt_userName').initValidator({
readyMsg: '',
focusMsg: '请输入登录用户名,字符数不少于2个',
validMsg: '输入符合规则',
msgTarget: 'tip_userName'
}).addValidator('required', {
errorMsg: '不可为空'
}).addValidator('length', {
min: 2,
max: 30,
errorMsg: '用户名过短,至少需要2个字符'
});
$('#ctl00_holderLeft_txt_display_name').initValidator({
readyMsg: '',
focusMsg: '请输入显示名称,字符数不少于2个',
validMsg: '输入符合规则',
msgTarget: 'tip_display_name'
}).addValidator('required', {
errorMsg: '不可为空'
});
$('#ctl00_holderLeft_txt_pwd').initValidator({
readyMsg: '至少4个字符',
focusMsg: '请输入密码,至少需要4位',
validMsg: '输入成功',
msgTarget: 'tip_pwd'
}).addValidator('required', {
errorMsg: '不可为空'
}).addValidator('length', {
min: 4,
max: 50,
errorMsg: '密码至少需要4位字符'
});
$('#ctl00_holderLeft_txt_confirm_pwd').initValidator({
readyMsg: '',
focusMsg: '请再输入一遍密码,要求与上面的一致',
validMsg: '输入成功',
msgTarget: 'tip_confirm_pwd'
}).addValidator('required', {
errorMsg: '不可为空'
}).addValidator('length', {
min: 4,
max: 50,
errorMsg: '至少需要4位字符'
});
$('#ctl00_holderLeft_txt_email').initValidator({
readyMsg: '',
focusMsg: '请输入电子邮件',
validMsg: '输入成功',
msgTarget: 'tip_email'
}).addValidator('required', {
errorMsg: '不可为空'
}).addValidator('regex', {
regex: '(\\w|\-)+@((\\w|\-)+\\.)+[a-z]{2,5}',
errorMsg: 'E-mail格式错误,请重新输入'
});
$('#ctl00_holderLeft_txt_authen_code').initValidator({
readyMsg: '',
focusMsg: '请输入验证码',
msgTarget: 'tip_authen_code'
}).addValidator('required', {
errorMsg: '不可为空'
});
});
function confirmpwd() {
p1 = $('#ctl00_holderLeft_txt_pwd').val();
p2 = $('#ctl00_holderLeft_txt_confirm_pwd').val();
if (p1 != p2) {
setTimeout(function() {
$('#ctl00_holderLeft_txt_confirm_pwd').val('');
$('#tip_confirm_pwd').removeClass('validation-valid');
$('#tip_confirm_pwd').addClass('validation-error');
$('#tip_confirm_pwd').html('密码与确认密码输入不一致,请重新输入');
}, 10)
}
}
function UserNameExist() {
var loginName = $('#ctl00_holderLeft_txt_userName').val();
if (loginName == "" || loginName.length < 2) {
return;
}
$('#tip_userName').append("正在检查用户名是否存在....");
$.ajax({
url: '/ws/UserService.asmx/LoginNameExist',
data: '{loginName:"' + loginName + '"}',
type: 'post',
dataType: 'json',
contentType: 'application/json; charset=utf8',
cache: false,
success: function(data) {
if (data.d) {
setTimeout(function() {
//$('#ctl00_holderLeft_txt_userName').val('');
$('#tip_userName').removeClass('validation-valid');
$('#tip_userName').addClass('validation-error');
$('#tip_userName').html('登录用户名<strong>"' + loginName + '</strong>"已存在,请使用其它登录用户名');
}, 10);
}
//else
//$('#tip_userName').html("登录用户名输入成功");
},
error: function(xhr) {
$('#tip_userName').html(xhr.responseText);
}
});
}
function DisplayExist() {
displayName = $('#ctl00_holderLeft_txt_display_name').val();
if (displayName == "") {
$('#tip_display_name').removeClass('validation-valid');
$('#tip_display_name').html();
return;
}
$('#tip_display_name').addClass("validation-valid");
$('#tip_display_name').append("正在检查显示名称是否存在....");
$.ajax({
url: '/ws/UserService.asmx/DisplayNameExist',
data: '{displayName:"' + displayName + '"}',
type: 'post',
dataType: 'json',
contentType: 'application/json; charset=utf8',
cache: false,
success: function(data) {
if (data.d) {
setTimeout(function() {
//$('#ctl00_holderLeft_txt_display_name').val('');
$('#tip_display_name').removeClass('validation-valid');
$('#tip_display_name').addClass('validation-error');
$('#tip_display_name').html('显示名称<strong>"' + displayName + '</strong>"已存在,请使用其他显示名称');
}, 10);
}
//else
//$('#tip_display_name').html("显示名称输入成功");
},
error: function(xhr) {
$('#tip_display_name').html(xhr.responseText);
}
});
}
function EmailExist() {
email = $('#ctl00_holderLeft_txt_email').val();
if (email == "") {
$('#tip_email').removeClass('validation-valid');
$('#tip_email').html();
return;
}
$('#tip_email').addClass("validation-valid");
$('#tip_email').append("正在检查显示名称是否存在....");
$.ajax({
url: '/ws/UserService.asmx/EmailExist',
data: '{email:"' + email + '"}',
type: 'post',
dataType: 'json',
contentType: 'application/json; charset=utf8',
cache: false,
success: function(data) {
if (data.d) {
setTimeout(function() {
//$('#ctl00_holderLeft_txt_email').val('');
$('#tip_email').removeClass('validation-valid');
$('#tip_email').addClass('validation-error');
$('#tip_email').html('邮箱<strong>"' + email + '</strong>"已存在,请使用其他邮箱');
}, 10);
}
//else
//$('#tip_email').html("邮箱输入成功");
没有合适的资源?快使用搜索试试~ 我知道了~
swf.zip_Table
共11个文件
css:4个
js:3个
aspx:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2022-09-14
20:56:55
上传
评论
收藏 58KB ZIP 举报
温馨提示
一个登录源码,采用javascri和css共同控制, div和table 都涉及
资源推荐
资源详情
资源评论
收起资源包目录
swf.zip (11个子文件)
swf
jquery.js 92KB
screen_base.css 11KB
val.js 15KB
myRe.html 15KB
reset.css 956B
ValidCodeImage.aspx 2KB
framework.js 20KB
logo.gif 6KB
register.css 1KB
validate.css 960B
scriptCurrentUserInfo.aspx 266B
共 11 条
- 1
资源评论
alvarocfc
- 粉丝: 112
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功