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

📄 postnew.jsp

📁 JAVA做的留言簿
💻 JSP
字号:
<%--*****************************************************
*   天地网络--JSP留言薄            www.tiandinet.com    *
*                                                       *
*  你可以使用、修改该软件,但请保留该段文字!           *
*                                                       *
*                                                       *
*                 作者:天地                            *
*                 网址:http://www.tiandinet.com        *
*                 2003年10月                            *
*****************************************************--%>

<%@ page contentType="text/html;charset=gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>天地网络--JSP留言薄</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
    function checkform()
	{
	    if(form.name.value=="")
		{
		    alert("请输入你的姓名!");
			form.name.focus();
			return false;
		}
	    if(form.headima[0].checked==false&&form.headima[1].checked==false)
		{
		    alert("请选择你的头像!");
			return false;
		}
	    if(form.content.value=="")
		{
		    alert("请输入留言内容!!");
			form.content.focus();
			return false;
		}
		return true;
	}
</script>
<style type="text/css">
<!--
BODY {FONT-SIZE: 9pt; LINE-HEIGHT: 11pt; FONT-FAMILY:  "Arial", "Helvetica", "sans-serif";
        scrollbar-base-color:#EEEEEE;
        scrollbar-arrow-color:#FFFFFF;
     }
TD {
	FONT-SIZE: 9pt; LINE-HEIGHT: 11pt; FONT-FAMILY: "Arial", "Helvetica", "sans-serif"
}
A:visited {
TEXT-DECORATION: none
; color: #000000
}
A:active {
TEXT-DECORATION: underline
; color: #000000
}
A:link {
TEXT-DECORATION: none
; color: #000000
}
A:hover {
TEXT-DECORATION: underline
; color: #000000
}
.bgtable {
	border-top: 0px none #000000;
	border-right: 1px solid #000000;
	border-bottom: 0px none #000000;
	border-left: 1px solid #000000;
}
.imageborder {
	border-top: 1px solid #000000;
	border-right: 0px none #000000;
	border-bottom: 1px solid #000000;
	border-left: 0px none #000000;
}
-->
</style>
<style type="text/css">
<!--
.topbottom {
	border-top-width: 1px;
	border-right-width: 0px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-bottom-color: #000000;
}
.leftline {
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-left-color: #000000;
}
-->
</style>
<style type="text/css">
<!--
.input {
	font-family: "Arial", "Helvetica", "sans-serif";
	font-size: 12px;
	color: #000000;
	background-color: #FFFFFF;
	border: 1px dotted #000000;
	height: 18px;
	width: 140px;
}
.textarea {
	font-family: "Arial", "Helvetica", "sans-serif";
	font-size: 12px;
	color: #000000;
	background-color: #FFFFFF;
	height: 80px;
	width: 190px;
	border: 1px dotted #000000;
}
-->
</style>
<style type="text/css">
<!--
.button {
	font-family: "Arial", "Helvetica", "sans-serif";
	font-size: 12px;
	color: #000000;
	background-color: #FFFFFF;
	height: 18px;
	width: 35px;
	border: 1px dotted #000000;
}
.1px4 {
	border: 1px dotted #000000;
}
-->
</style>
</head>

<body background="ima/page_bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="740" height="100%" border="0" align="center" cellpadding="00" cellspacing="0" bgcolor="#FFFFFF" class="bgtable">
  <tr> 
    <td height="86" align="center" valign="middle" bgcolor="#EEEEEE"><img src="ima/title.gif" width="740" height="80" border="0"></td>
  </tr>
  <tr> 
    <td align="center" valign="top"><table width="730" height="100%" border="0" cellpadding="00" cellspacing="0">
        <tr> 
          <td height="25" colspan="2" align="center" valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td width="730" colspan="2" align="center" valign="middle" class="topbottom"><form name="form" method="post" action="post.jsp" onSubmit="return checkform()">
              <table width="210" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td height="25" align="center"><b>发&nbsp;表&nbsp;留&nbsp;言</b></td>
                </tr>
                <tr>
                  <td align="center" bgcolor="#EEEEEE"><table width="210" border="0" cellspacing="1" cellpadding="2">
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;姓名</td>
                        <td width="150"><input name="name" type="text" class="input" id="name" maxlength="20"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;QQ</td>
                        <td width="150"><input name="qq" type="text" class="input" id="qq" maxlength="20"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;E-mail</td>
                        <td width="150"><input name="email" type="text" class="input" id="email" maxlength="80"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;个人主页</td>
                        <td width="150"><input name="homepage" type="text" class="input" id="homepage" maxlength="80"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;头像</td>
                        <td width="150"><input type="radio" name="headima" value="0"> 
                          <img src="ima/headima/0.gif" width="32" height="32" border="0">&nbsp;&nbsp;&nbsp;&nbsp; 
                          <input type="radio" name="headima" value="1"> <img src="ima/headima/1.gif" width="32" height="32" border="0"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="60">&nbsp;留言</td>
                        <td width="150">&nbsp;</td>
                      </tr>
                      <tr align="center" bgcolor="#FFFFFF"> 
                        <td colspan="2"><textarea name="content" class="textarea" id="content"></textarea></td>
                      </tr>
                      <tr align="right" bgcolor="#FFFFFF"> 
                        <td colspan="2"><font color="#FF0000">小于1000字符</font></td>
                      </tr>
                      <tr align="right" valign="middle" bgcolor="#FFFFFF"> 
                        <td height="30" colspan="2"><input name="Submit" type="submit" class="button" value="发表"> 
                          &nbsp;&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              </form> </td>
        </tr>
        <tr>
          <td height="25" colspan="2" align="center" valign="top">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="3" align="center" valign="top" bgcolor="#EEEEEE"></td>
  </tr>
  <tr> 
    <td width="740" height="40" align="right" valign="middle" background="ima/bottom.gif">&nbsp;&nbsp;<img src="ima/tiandi.gif" width="32" height="32" border="0">&nbsp;Design&nbsp;by&nbsp;TianDi&nbsp;&nbsp;</td>
  </tr>
  <tr>
    <td height="3" align="right" valign="middle" bgcolor="#EEEEEE"></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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