index.jsp
上传用户:zhc3n3
上传日期:2022-07-30
资源大小:2750k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <script type="text/javascript">
  6.  var i=0;
  7.  var image=0;
  8. function renovate(image){
  9.    image.src="randomCodeServlet?id="+i;
  10.        i=i+1;
  11. }
  12. </script>
  13. <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
  14. <title>用户登录</title>
  15. <style>
  16. table{ margin-top:150px}
  17. </style>
  18. </head>
  19. <body style="background-image:url(images/10636126.jpg); background-repeat:no-repeat ">
  20. <form id="form2" name="form2" method="post" action="login.do">
  21.   <table width="32%" height="256" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#3366FF" background="images/DE121337813.jpg" bgcolor="#FFFBF0">
  22.     <tr>
  23.       <td height="49" colspan="2"><div align="center"> </div></td>
  24.     </tr>
  25.     <tr>
  26.       <td width="37%" height="46"><div align="right">用户名:</div></td>
  27.       <td width="63%"><input type="text" name="txtName" /></td>
  28.     </tr>
  29.     <tr>
  30.       <td height="35"><div align="right">密码:</div></td>
  31.       <td><input type="password" name="txtPwd" /></td>
  32.     </tr>
  33.     <tr>
  34.       <td height="36"><div align="right">验证码:</div></td>
  35.       <td><input name="rand" type="text" size="7" />
  36.   <img name="image" border=0 src="randomCodeServlet"/> <a href="javascript:renovate(image)" class="style1" onClick="renovate(image)">看不清!换一张</a>
  37.       <script language="JavaScript">
  38. today=new Date();
  39. var hours = today.getHours();
  40. var minutes = today.getMinutes();
  41. var seconds = today.getSeconds();
  42. var timeValue = "<FONT COLOR=black>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=black>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=black>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
  43. timeValue += (hours >= 12) ? "<FONT COLOR=black>pm</FONT>" : "<FONT COLOR=black>am</FONT>";
  44. function initArray(){
  45. this.length=initArray.arguments.length
  46. for(var i=0;i<this.length;i++)
  47. this[i+1]=initArray.arguments[i]  }
  48. var d=new initArray("<font color=RED>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=black>星期六"); document.write("<font color=black>",today.getYear(),"<font color=black>年","<font color=black>",today.getMonth()+1,"<font color=black>月","<font color=black>",today.getDate(),"<font color=black>日 </FONT>",d[today.getDay()+1]," ",timeValue);  //-->
  49. </script>
  50. </td>
  51.     </tr>
  52.     <tr>
  53.       <td colspan="2"><div align="center">
  54.         <input type="submit" name="Submit" value="登陆" />
  55.         <input type="reset" name="Submit2" value="取消" />
  56.         <a href="register.jsp">新用户注册</a></div></td>
  57.     </tr>
  58.   </table>
  59.   
  60. </form>
  61. </html>