日期:2014-05-19  浏览次数:20707 次

帮我看下那里错了啊

刚开始的登录界面

Java code
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>

<%
    session.invalidate();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>

        <title>zhong he guan li xi tong</title>
        <meta http-equiv="Content-type" content="text/html;charset=gb2312" />
        <META content="MSHTML 6.00.2900.3314" name=GENERATOR>
        <link href="images/blue.css" rel="stylesheet" type="text/css">

        <style type="text/css">
<!--
body {
    background-image: url(images/bg.gif);
    margin: 0px;
    background-repeat: repeat-x;
}

table,td {
    font-family: "宋体";
    font-size: 12px;
}

.inputtext {
    border-left: 1px solid balck;
    border-right: 1px solid balck;
    border-top: 1px solid balck;
    border-bottom: 1px solid balck;
}

.loginbg {
    font-size: 12px;
    width: 59px;
    height: 26px;
    background-image: url(images/login_bg.gif);
    border: none;
    padding-top: 3px;
    color: white;
}

.font1 {
    FONT-SIZE: 12px;
    LINE-HEIGHT: 130%;
    FONT-FAMILY: "宋体"
}

.input {
    BORDER-RIGHT: #000000 1px solid;
    BORDER-TOP: #000000 1px solid;
    FONT-SIZE: 12px;
    BORDER-LEFT: #000000 1px solid;
    COLOR: #000000;
    BORDER-BOTTOM: #000000 1px solid;
    FONT-FAMILY: "宋体";
    BACKGROUND-COLOR: #ffffff
}
-->
</STYLE>

    </head>
    <body bgcolor=#002779>
    <script language="javascript">
      function form_check(){
       if(document.form1.username.value==""){
        window.alter("登录名不能为空");
        document.form1.username.focus();
        return (false);
       }
       if(document.form1.pwd.value=""){
        window.alter("登录密码不能为空");
        document.form1.pwd.focus();
        return (false);
       }
      }
      
      function loginclick(){
      if(form_check()){
       this.form.submit();
      }
      }
    </script>
        <table height=600 width="100%" cellSpacing=0 cellPadding=0
            align=center border=0>
            <tbody>
                <tr>
                    <td valign=center align=middle>
                        <div align=center>
                            <table cellSpacing=0 cellPadding=0 width=460 border=0>
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height=12 src="images/login_1.jpg" width=50>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <TABLE cellSpacing=0 cellPadding=0 width=460 border=0>
                                <TBODY>
                                    <TR>
                                        <TD>
                                            <IMG height=109 src="images/login_2_.jpg" width=460>
                                        </TD>
                                    </TR>
                                </TBODY>
                            </TABLE>

                            <TABLE cellSpacing=0 cellPadding=0 width=460 border=0>
                                <TBODY>
                                    <TR>
                                        <TD bgColor=#eeeeee height=6></TD>
                                    </TR>