-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRegist.aspx
More file actions
176 lines (167 loc) · 6.64 KB
/
Copy pathRegist.aspx
File metadata and controls
176 lines (167 loc) · 6.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Regist.aspx.cs" Inherits="Regist" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
.auto-style1 {
width: 959px;
height: 600px;
margin-left: 355px;
margin-top: 38px;
}
.auto-style2 {
width: 100%;
height: 603px;
}
.auto-style3 {
width: 515px;
}
.auto-style4 {
width: 100%;
height: 593px;
}
.auto-style6 {
height: 34px;
}
.auto-style7 {
width: 306px;
height: 34px;
margin-left: 8px;
}
.auto-style8 {
height: 87px;
}
.auto-style9 {
width: 307px;
height: 34px;
margin-left: 8px;
}
.auto-style10 {
height: 68px;
}
.auto-style11 {
width: 306px;
height: 34px;
margin-left: 9px;
}
.auto-style14 {
height: 80px;
}
.auto-style15 {
width: 306px;
height: 40px;
}
.auto-style16 {
height: 67px;
}
a{
text-decoration:none;
}
.auto-style17 {
height: 18px;
margin-left: 461px;
margin-top: 0px;
width: 306px;
height: 34px;
margin-left: 8px;
}
</style>
<script type="text/javascript">
function loadXMLDoc() {
if (document.getElementById("txtUserName").value == "") {
document.getElementById("accDiv").innerHTML = "用户名不能为空";
return;
}
var xmlHttp;
if (window.XMLHttpRequest) { // code for IE7+
xmlHttp = new XMLHttpRequest();
}
else { // code for IE5/IE6
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
//document.getElementById("myDiv").innerHTML=xmlHttp.responseText;
if (xmlHttp.responseText == "true") {
document.getElementById("accDiv").innerHTML = "用户名不可用";
}
else {
document.getElementById("accDiv").innerHTML = "用户名可用";
}
}
}
var a = document.getElementById("txtUserName").value;
// get
xmlHttp.open("GET", "validate.aspx?account=" + a + "&random=" + Math.random, true);
xmlHttp.send();
}
function delData() {
document.getElementById("txtUserName").value = "";
document.getElementById("accDiv").innerHTML = "";
}
</script>
<script type="text/javascript">
var checked = document.getElementById("checked")
var register = document.getElementById("btn_submit")
register.onclick = function () {
if (checked.checked == true) {
}
else {
alert("请勾选注册协议");
return false
}
}
</script>
</head>
<body style="height: 743px ; background-image:url(images/regist.jpg);background-size:cover" >
<h1 style="text-align:center; font-size: 40px; font-family: 'Brush Script MT'; color: #666666;"><a href="HomePage.aspx" style="text-align:center">DreamWar</a></h1>
<form id="form1" runat="server" >
<div >
<div class="auto-style1">
<table class="auto-style2">
<tr>
<td class="auto-style3" style=" opacity:0.7;filter:alpha(opacity=70);">
<table class="auto-style4" >
<tr>
<td class="auto-style6"> </td>
</tr>
<tr>
<td class="auto-style8">
<input id="txtUserName" class="auto-style7" type="text" placeholder="UserName" runat="server" onblur="loadXMLDoc()" onfocus="delData()"/> <span id="accDiv" style="font-size:larger" ></span></td>
</tr>
<tr>
<td class="auto-style10">
<input id="txtPassword" class="auto-style9" type="password" placeholder="Password" runat="server" /></td>
</tr>
<tr>
<td class="auto-style14">
<input id="txtConfirmation" class="auto-style11" type="password" placeholder="Confirmation" runat="server"/> </td>
</tr>
<tr>
<td class="auto-style10">
<input id="checked" type="checkbox" /> <a href="iteams.aspx"> agree regist with items</a></td>
</tr>
<tr>
<td class="auto-style16">
<input id="btn_submit" class="auto-style15" type="button" value="Sign up" runat="server" onserverclick="btn_submit_ServerClick"/></td>
</tr>
<tr>
<td>
<asp:HyperLink ID="HyperLink1" runat="server"><a href="Login.aspx">Login</a> </asp:HyperLink>
</td>
</tr>
<tr>
<td style="font-size: medium"> Copyright ©2017 Starrier.All rights reserved </td>
</tr>
</table>
</td>
<td style="background-image:url()"></td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>