⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 基于jsp的电子商务网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page session="true" %>
<%
session.removeAttribute("admin");
session.removeAttribute("username");
%>
<html>
<head>
<title>LEE电子商务管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
  function checkform() {
	if (document.form1.username.value=="" || document.form1.passwd.value==""){
		alert("用户名或密码不能为空!");
		form1.username.focus();
		return false;
	}
	return true;
  }
  
var msg="        欢迎登陆管理系统 "; 
var seq = 0; 
function Scroll(){ 
 window.status = msg.substring(msg.length,seq); seq++; 
 if (seq >= msg.length )
 { seq = 0 };
 window.setTimeout("Scroll();", 300 );
}   
</script>
<link rel="stylesheet" href="books.css" type="text/css">
</head>
<body text="#000000" onLoad="Scroll();">
<script language="JavaScript1.2">
  // Configure below to change number of snow to render
  var no = 10;

  var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
  var ie4up = (document.all) ? 1 : 0;

  var dx, xp, yp;    // coordinate and position variables
  var am, stx, sty;  // amplitude and step variables
  var i, doc_width = 800, doc_height = 600;
  
  if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  
  for (i = 0; i < no; ++ i) {  
    dx[i] = 0;                        // set coordinate variables
    xp[i] = Math.random()*(doc_width-50);  // set position variables
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;         // set amplitude variables
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random();     // set step variables
    if (ie4up) {
      if (i == 0) {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\"../images/snow1.gif\"></div>");
        } else {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\"../images/snow2.gif\"></div>");
        }
    } else if (ns4up) {                      // set layers
      if (i == 0) {
        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\"../images/snow3.gif\"></layer>");
      } else {
        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\"../images/snow4.gif\"></layer>");
      }
    }
  }
  
  function snowNS() {  // Netscape main animation function
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random();
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
      }
      dx[i] += stx[i];
      document.layers["dot"+i].top = yp[i];
      document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowNS()", 10);
  }

  function snowIE() {  // IE main animation function
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random();
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
      }
      dx[i] += stx[i];
      document.all["dot"+i].style.pixelTop = yp[i];
      document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
    }
    setTimeout("snowIE()", 10);
  }

  if (ns4up) {
    snowNS();
  } else if (ie4up) {
    snowIE();
  }
</script>
<div align="center">
  <table width="100%" border="0" height="100%" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center" valign="middle">
<br>
  <img src="../images/welcome.gif">
  <br><br>
  </td>
  </tr>
    <tr> 
      <td align="center" valign="top"> 
        <form name="form1" method="post" action="adminlogin" onSubmit="return checkform();">
          <table width="360" border="0" cellspacing="4" cellpadding="4" bgcolor="#CCCC99" bordercolor="#CC33CC" style="font-size:10pt">
            <tr align="center"> 
              <td colspan="2">                <h3><img src="../images/button_login.gif" width="72" height="23"><br>
                <br>
                  <font color="#FF0000">LEE 电子商务管理系统</font><br>
              </h3>              </td>
            </tr>
            <tr> 
              <td align="right" width="150">管理员名称:</td>
              <td> 
                <input type="text" name="username" size="16" maxlength="20">              </td>
            </tr>
            <tr> 
              <td align="right" width="150">管理员密码:</td>
              <td> 
                <input type="password" name="passwd" size="16" maxlength="20">              </td>
            </tr>
            <tr align="center"> 
              <td colspan="2"> 
                <input type="submit" name="Submit" value="登录">
                &nbsp;<input type="reset" name="Submit2" value="取消">              </td>
            </tr>
            <tr align="center">
              <td colspan="2">
			  <a href="../index.jsp">
			  &nbsp;&nbsp;&nbsp;<img src="../images/gohome.gif" width="46" height="16" style="border:none; ">
			  </a></td>
            </tr>
          </table>
	    </form>
		 <table width="70%" border="0" cellspacing="2" cellpadding="2" align="center">
    	<tr>
      <td align="center">开发:LeeCong<br>
        CopyRight@2006 <br>
        Email:<a href="mailto:leecong@eyou.com">leecong@eyou.com</a></td>
    </tr>
</table>  
      </td>
    </tr>
  </table></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -