1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="PumpkinHouse.Account.Register"
\r
2 MasterPageFile="~/Site.Master" %>
\r
4 <asp:Content ContentPlaceHolderID="HeadContent" runat="server">
\r
5 <script src="/Scripts/account.js" language="javascript" type="text/javascript"></script>
\r
6 <script type="text/javascript" language="javascript" >
\r
7 function doAction() {
\r
8 $('#email').watermark('这是你的登录账号哦!');
\r
9 $('#nickname').watermark('中英文皆可,14个字符/汉字');
\r
10 $('#password').watermark('6-16位数字/字母 ');
\r
12 configureRegistrationValidation();
\r
14 $("#nickname").focus(function () {
\r
15 $("#nickname").css({"background-color":"#fff","color":"#5d5d5d"});
\r
17 $("#nickname").blur(function (e) {
\r
18 var nameVal = $(e.target).val()
\r
19 if (nameVal.length == 0) {
\r
20 $("#nickname").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });
\r
22 $("#nickname").css({ "background-color": "#fff", "color": "#5d5d5d" });
\r
26 $("#email").focus(function () {
\r
27 $("#email").css({ "background-color": "#fff", "color": "#5d5d5d" });
\r
29 $("#email").blur(function (e) {
\r
30 var nameVal = $(e.target).val()
\r
31 if (nameVal.length == 0) {
\r
32 $("#email").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });
\r
34 $("#email").css({ "background-color": "#fff", "color": "#5d5d5d" });
\r
38 $("#password").focus(function () {
\r
39 $("#password").css({ "background-color": "#fff", "color": "#5d5d5d" });
\r
41 $("#password").blur(function (e) {
\r
42 var nameVal = $(e.target).val()
\r
43 if (nameVal.length == 0) {
\r
44 $("#password").css({ "background-color": "#F8F8F8", "color": "#c1c1c1" });
\r
46 $("#password").css({ "background-color": "#fff", "color": "#5d5d5d" });
\r
54 <asp:Content ContentPlaceHolderID="MainContent" runat="server">
\r
55 <style type="text/css">
\r
56 .error{color:Red; font-size:16px; display:block; height:20px; font-weight:100; padding-top:20px; }
\r
59 <form id="registerForm" action="">
\r
60 <div class="Register">
\r
61 <h1 class="Register-title">使用其他账号快速注册</h1>
\r
62 <div class="fast-login-Btn">
\r
64 <li><a href="/Account/QQAuth.aspx?request=1" class="btn-qq"></a></li>
\r
65 <li><a href="/Account/TaobaoAuth.aspx?request=1" class="btn-taobao"></a><a href="/Account/TaobaoAuth.aspx?request=1"></a></li>
\r
66 <li><a href="/Account/SinaAuth.aspx?request=1" class="btn-sinaweibo"></a></li>
\r
67 <li><a href="/Account/QQWeiboAuth.aspx?request=1" class="btn-qqweibo"></a></li>
\r
71 <h1 class="Register-title">邮箱注册</h1>
\r
72 <div class="email-login">
\r
74 <li><span>昵称</span><input type="text" value="" id="nickname" name="nickname" remote="/PublicService/AccountService.svc/ajax/IsNicknameAvailable" class="required" style="font-size:17px;" /></li>
\r
75 <li><span>邮箱</span><input type="text" value="" id="email" name="email" class="email required" remote="/PublicService/AccountService.svc/ajax/IsEmailAvailable" style="font-size:17px;"/></li>
\r
76 <li><span>密码</span><input type="password" value="" id="password" name="password" class="required" style="font-size:17px;" /></li>
\r
79 <div class="submitBox"><input type="submit" value="注册" class="RgSure" </div>
\r