-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignUp.html
More file actions
63 lines (63 loc) · 2.09 KB
/
signUp.html
File metadata and controls
63 lines (63 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="Shortcut Icon" href="logo.ico" />
<link rel="Bookmark" href="logo.ico" />
<title>Sign Up</title>
<link rel="stylesheet" type="text/css" href="init.css"></link>
<link rel="stylesheet" type="text/css" href="signUpStyle.css" ></link>
</head>
<body>
<div id = "right">
<h4>账号注册</h4>
<form action="main.html" id ="ff">
<input type="text" id = "username" placeholder = "输入用户名[学号]" onfocus ="changeImgToo()" tabindex = "1"></input>
<input type="text" id = "nickname" placeholder = "输入昵称" onfocus ="changeImgToo()" tabindex = "2"></input>
<input type="password" id = "password" onfocus ="changeImg()" placeholder = "输入密码" tabindex = "3"></input>
<input type="password" id = "password_confirm" onfocus ="changeImg()" placeholder = "再次输入密码" tabindex = "4"></input>
<input type="submit" value = "注 册" id = "submit" onclick = "c()"/>
<div id = "bottom">
<span class = "wrong_msg">用户名已被注册</span>
<a href="signIn.html" id = "have_account">已有账户</a>
</div>
</form>
</div>
<div id = "left">
<img src="bu_1.png" id = "bu"alt="布神镇楼">
</div>
<script type="text/javascript" src = "jquery.min.js"></script>
<script type="text/javascript">
$("body").css("height",$(window).height());
</script>
<script type="text/javascript">
function changeImg(){
$("#bu").attr("src","bu_1.png");
}
function changeImgToo(){
$("#bu").attr("src","bu.png");
}
</script>
<script type="text/javascript">
$("#username").focus();
</script>
<script type="text/javascript">
var result = {{resCode}};
if(result == 1)
{
$(".wrong_msg").show();
}
</script>
<script type="text/javascript" src = "signUp.js"></script>
<div class="hidden">
<script type="text/javascript">
if(document.images){
img1 = new Image();
img2 = new Image();
img1.src = "bu.png";
img2.src = "bu_1.png";
}
</script>
</div>
</body>
</html>