?? 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"請輸入留言內(nèi)容"
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">留言內(nèi)容</font></p>
<p><font color="#0066FF">(留言內(nèi)容不少于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="發(fā)表留言 " 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 + -