123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>My JSP 'index.jsp' starting page</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.1.0.min.js"></script>
- </head>
-
- <body>
- <STYLE>
- body{
- background: #ebebeb;
- font-family: "Helvetica Neue","Hiragino Sans GB","Microsoft YaHei","\9ED1\4F53",Arial,sans-serif;
- color: #222;
- font-size: 12px;
- }
- *{padding: 0px;margin: 0px;}
- .top_div{
- background: url("images/45.jpg");
- background-size: 100% 360px;
- width: 100%;
- height: 360px;
- }
- .ipt{
- border: 1px solid #d3d3d3;
- padding: 10px 10px;
- width: 290px;
- border-radius: 4px;
- padding-left: 35px;
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
- -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
- -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
- transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
- }
- .ipt:focus{
- border-color: #66afe9;
- outline: 0;
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
- }
- .u_logo{
- background: url("images/username.png") no-repeat;
- padding: 10px 10px;
- position: absolute;
- top: 43px;
- left: 40px;
- }
- .p_logo{
- background: url("images/password.png") no-repeat;
- padding: 10px 10px;
- position: absolute;
- top: 12px;
- left: 40px;
- }
- a{
- text-decoration: none;
- }
- .tou{
- background: url("images/tou.png") no-repeat;
- width: 97px;
- height: 92px;
- position: absolute;
- top: -87px;
- left: 140px;
- }
- .left_hand{
- background: url("images/left_hand.png") no-repeat;
- width: 32px;
- height: 37px;
- position: absolute;
- top: -38px;
- left: 150px;
- }
- .right_hand{
- background: url("images/right_hand.png") no-repeat;
- width: 32px;
- height: 37px;
- position: absolute;
- top: -38px;
- right: -64px;
- }
- .initial_left_hand{
- background: url("images/hand.png") no-repeat;
- width: 30px;
- height: 20px;
- position: absolute;
- top: -12px;
- left: 100px;
- }
- .initial_right_hand{
- background: url("images/hand.png") no-repeat;
- width: 30px;
- height: 20px;
- position: absolute;
- top: -12px;
- right: -112px;
- }
- .left_handing{
- background: url("images/left-handing.png") no-repeat;
- width: 30px;
- height: 20px;
- position: absolute;
- top: -24px;
- left: 139px;
- }
- .right_handinging{
- background: url("images/right_handing.png") no-repeat;
- width: 30px;
- height: 20px;
- position: absolute;
- top: -21px;
- left: 210px;
- }
- </STYLE>
-
- <SCRIPT type="text/javascript">
- $(function(){
- //得到焦点
- $("#password").focus(function(){
- $("#left_hand").animate({
- left: "150",
- top: " -38"
- },{step: function(){
- if(parseInt($("#left_hand").css("left"))>140){
- $("#left_hand").attr("class","left_hand");
- }
- }}, 2000);
- $("#right_hand").animate({
- right: "-64",
- top: "-38px"
- },{step: function(){
- if(parseInt($("#right_hand").css("right"))> -70){
- $("#right_hand").attr("class","right_hand");
- }
- }}, 2000);
- });
- //失去焦点
- $("#password").blur(function(){
- $("#left_hand").attr("class","initial_left_hand");
- $("#left_hand").attr("style","left:100px;top:-12px;");
- $("#right_hand").attr("class","initial_right_hand");
- $("#right_hand").attr("style","right:-112px;top:-12px");
- });
- });
- </SCRIPT>
-
- <BODY>
- <DIV class="top_div">
- <h1 align="center"><div style="margin-top:100px;"></div></h1></DIV>
- <DIV style="background: rgb(255, 255, 255); margin: -250px auto auto ; margin-left: 66%; border: 1px solid rgb(231, 231, 231); border-image: none; width: 400px; height: 200px; text-align: center;">
- <DIV style="width: 165px; height: 96px; position: absolute;">
- <DIV class="tou"></DIV>
- <DIV class="initial_left_hand" id="left_hand"></DIV>
- <DIV class="initial_right_hand" id="right_hand"></DIV></DIV>
- <form action="SportServlet?method=login" method="post" >
- <P style="padding: 30px 0px 10px; position: relative;"><SPAN
- class="u_logo"></SPAN> <INPUT class="ipt" name = "name" type="text" placeholder="请输入用户名或邮箱" value="">
- </P>
- <P style="position: relative;"><SPAN class="p_logo"></SPAN>
- <INPUT class="ipt" name="pass" type="password" placeholder="请输入密码" value="">
- </P>
- <p><font color="red">${requestScope.error}</font></p>
- <DIV style="height: 50px; line-height: 50px; margin-top: 30px; border-top-color: rgb(231, 231, 231); border-top-width: 1px; border-top-style: solid;">
- <P style="margin: 0px 35px 20px 45px;"><SPAN style="float: left;">
- <select type="option; text-align:center;"style="height:30px;" name="type">
- <option value="1">运动员</option>
- <option value="2">管理员</option>
- </select>
- <input style="background: rgb(0, 142, 173); padding: 7px 10px; border-radius: 4px; border: 1px solid rgb(26, 117, 152); border-image: none; color: rgb(255, 255, 255); font-weight: bold;"
- value="登录" type="submit"/>
- </SPAN> </P></DIV></DIV>
- <div style="text-align:center;">
- </form>
- </div></BODY></HTML>
|