📄 loginlw.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<!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>Insert title here</title>
</head>
<body background="file:///d|/My Documents/My Pictures/beijingtupian/154_12062[1].jpg">
<div align="center">
<script language="VBScript">
sub check()
if form1.user.value="" then
alert"请输入留言人"
form1.user.focus
exit sub
end if
if form1.email.value="" then
alert"请输入电子邮件"
form1.email.focus
exit sub
end if
if instr(form1.email.value,"@")=0 then
alert"电子邮件格式不正确"
form1.email.focus
exit sub
end if
if form1.title.value="" then
alert"请输入留言标题"
form1.title.focus
exit sub
end if
if form1.content.value="" then
alert"请输入留言内容"
form1.content.focus
exit sub
end if
form1.submit
end sub
sub bb()
form1.img.src=document.form1.tou.value
end sub
</script>
<div align="left">
<strong><<<a href="index1.jsp">首页</a><<留言版</strong>
<form name="form1" method="post" action="servlet/addlwservelet1">
<table width="63%" height="447" border="1" align="center" bgcolor="#CCFFCC">
<tr>
<td width="15%" height="24"><div align="left">留言人</div></td>
<td colspan="2">
<div align="left">
<input name="user" type="text" id="user">
<font color="#FF0000">*</font>
<label></label>
</div></td>
</tr>
<tr>
<td height="81">性 别</td>
<td width="26%"><select name="tou" id="tou" onChange="bb()">
<option value="images/01.gif">images/01.gif</option>
<option value="images/04.gif">images/04.gif</option>
</select></td>
<td width="59%"><img name="img" src="images/01.gif" width="70" height="77" alt=""></td>
</tr>
<tr>
<td height="29"><div align="left">来 自</div></td>
<td colspan="2"><div align="left">
<label>
<select name="cf" id="cf">
<option>---请选择你所在的地方---</option>
<option>湖南省</option>
<option>湖北省</option>
<option>江西省</option>
<option>浙江省</option>
<option>河南省</option>
<option>河北省</option>
<option>广东省</option>
<option>海南省</option>
</select>
</label>
<font color="#FF0000">*</font></div></td>
</tr>
<tr>
<td height="32"><div align="left">email</div></td>
<td colspan="2"><div align="left">
<input name="email" type="text" id="email">
<font color="#FF0000">*</font></div></td>
</tr>
<tr>
<td height="28"><div align="left">标 题</div></td>
<td colspan="2"><div align="left">
<input name="title" type="text" id="title" size="50">
<font color="#FF0000">*</font></div></td>
</tr>
<tr>
<td height="210"><p><font color="#0066FF">留言内容</font></p>
<p><font color="#0066FF">(留言内容不少于20个字) </font></p></td>
<td colspan="2" align="center"> <div align="left">
<font color="#0066FF">
<textarea name="content" cols="58" rows="15" id="content"></textarea>
*</font></div></td>
</tr>
<tr>
<td height="20" colspan="3"> <div align="center">
<input name="ly" type="button" id="ly" value="发表留言 " onClick="check()">
<input type="reset" name="Submit2" value="重置">
</div>
<div align="center"></div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -