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

📄 index.jsp

📁 在eclipse 环境下开发的 JAVA 网站 源程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>登陆界面</title>

<script Language="JavaScript">

	function firstisspace(mystring)
	{ 	var istring=mystring;
	  	var temp,i,strlen;
	  	temp=false;
	    if (istring.substring(0,1)==" ")
	     	{ temp=true;  }
	 	return temp;
	}
	
	function sub()
	{
		var name= document.myform.logname.value;
      	var passwd = document.myform.password.value;
      
	    if((name == "")|(firstisspace(name)))
        {
          alert('请输入用户名');
          document.myform.logname.focus();
          return false;
        }
      
        if((passwd == "")|(firstisspace(passwd)))
        {
          alert('请输入密码');
          document.myform.password.focus();
          return false;
        }
        
		alert('跳转到用户密码验证!');	       
	    	    
        document.myform.action="check.jsp";
		document.myform.submit();
	}
	
</script>
</head>
<body>
<%request.setCharacterEncoding("gb2312"); %>
<form name="myform" method="post">
<table width="1004" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/index_01.gif" width="172" height="263" alt="1" /></td>
    <td><img src="images/index_02.gif" width="238" height="263" alt="2" /></td>
    <td><img src="images/index_03.gif" width="594" height="263" alt="3" /></td>
  </tr>
</table>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="800" border="0" cellspacing="0" cellpadding="0">
        <td width="246">&nbsp;</td>
        <td width="691">
        <table width="524" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_center_06.gif" width="524" height="51" alt="t2" /></td>
          </tr>
          <tr>
              <td height="244" ><table width="100%" border="0" cellspacing="3" cellpadding="4">
              <tr>
	            <td width="22%">用户名称:</td>
	            <td width="78%"><label>
	            <input name="logname"  type="text" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#FDE8FE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); " size="20">
	            </label>
	            </td>
	          </tr>
	          <tr>
	            <td width="22%">用户密码:</td>
	            <td width="78%"><label>
	            <input name="password"  type="password" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#FDE8FE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); " size="20">
	            </label></td>
	          </tr>
	          <tr>
                  <td height="24">&nbsp;</td>                  
              </tr>
	          <tr>
	            <td align="right"><input type="button" value="提交"  onclick="sub()"/></td>
	          </tr>	 
	          </table>
	          </td>             
          </tr>
                 
        </table>
        </td>
      </table> 
    </td>   
  </tr>
</table> 
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="24">&nbsp;</td>
  </tr>
  <tr>
    <td height="24" align="center" >Copyright 2008.版权所有. 南京理学工程数据技术有限公司 </td>
  </tr>
</table>

</form></body></html>

⌨️ 快捷键说明

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