📄 zhuce1.jsp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="770" border="1" align="center">
<tr>
<th colspan="7" scope="col"><img src="../image/1.jpg" width="760" height="200" /></th>
</tr>
<tr>
<th width="104" height="40" background="../image/t1.jpg" scope="row"><table width="100" border="0">
<tr>
<th scope="col">首页</th>
</tr>
</table></th>
<td width="104" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">数码</th>
</tr>
</table></td>
<td width="104" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">服装</th>
</tr>
</table></td>
<td width="104" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">饰品</th>
</tr>
</table></td>
<td width="104" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">电器</th>
</tr>
</table></td>
<td width="104" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">食品</th>
</tr>
</table></td>
<td width="100" background="../image/t1.jpg"><table width="100" border="0">
<tr>
<th scope="col">日用</th>
</tr>
</table></td>
</tr>
</table>
<table width="770" border="1" align="center">
<tr>
<form id="search" name="search" method="get" action="http://search1.taobao.com/browse/search_auction.htm?at_topsearch=1">
<th width="754" bgcolor="#A6BBFC" scope="col" >搜索宝贝:
<select name="search_type" height="20">
<option selected="selected" value="auction" >类型</option>
<option value="shop">数码</option>
<option value="nick">服装</option>
<option value="info">饰品</option>
<option value="web">电器</option>
<option value="product">食品</option>
<option value="web">日用</option>
</select>
<select name="search_type" height="20">
<option selected="selected" value="auction" >价格</option>
<option value="shop">数码</option>
<option value="nick">服装</option>
<option value="info">饰品</option>
<option value="web">电器</option>
<option value="product">食品</option>
<option value="web">日用</option>
</select>
<input name="q" id="q" height="15"/>
<button id="DoSearch" type="submit"> 搜 索 </button>
</th>
</form>
</tr>
</table>
<script language=JavaScript>
function CheckForm() //编写函数
{
if(document.form1.username.value=="") //检测用户名输入框是否为空
{
alert("用户名不能为空!"); //弹出提示框
document.form1.username.focus();
return false;
}
var a; a=document.form1.username.value.length;
if(a<4 || a>16 ) //检测输入的用户名是否在规定的长度内。
{
alert("用户名长度为4-16位");
document.form1.username.focus();
return false;
}
if(document.form1.passwd.value=="") //检测密码输入框是否为空
{
alert("密码不能为空!");
document.form1.passwd.focus();
return false;
}else{
if(document.form1.passwd2.value=="") //检测确认密码输入框是否为空
{
alert("确认密码不能为空!");
document.form1.passwd2.focus();
return false;
}
else
{
var b; b=document.form1.passwd.value;
if(a<4 || a>16 ) //检测输入的密码是否在规定的长度内。
{
alert("密码长度为4-16位");
document.form1.passwd.value.focus();
return false;
}
if(document.form1.passwd.value!=document.form1.passwd2.value)
{ //检测密码和确认密码是否相等。
alert("初始密码和确认密码不同,请重新输入。");
document.form1.passwd2.focus();
return false;
}
}
}
}
window.onload=function(){document.form1.username.focus();}
</SCRIPT>
<table width="770" border="1" align="center" bgcolor="#FFF8B0">
<form action="zhuce.jsp" method="post" name="form1" onSubmit="return CheckForm()">
<tr scope="col">
<td height="30" colspan="2" align="center">请填写以下信息</td>
</tr>
<tr scope="col">
<tr>
<td height="28" align="center">用户类型:</td>
<td height="28"><input checked name="type" type="radio" value="0">买家<input name="type" type="radio" value="1">卖家
*</td>
</tr>
<tr>
<td width="18%" height="30" align="center">用 户 名:</td>
<td width="82%" ><input name="username" type="text" maxlength="20">
*用户名长度为4-16位
<a href="#" onClick="openwin(myform.username.value)">检测用户名 </a></td>
</tr>
<tr>
<td height="28" align="center">真实姓名:</td>
<td height="28"><input name="truename" type="text" maxlength="10">
*</td>
</tr>
<tr>
<td height="28" align="center">密 码:</td>
<td height="28"><input name="pwd" type="password" size="20" maxlength="20">
*密码长度为4-16位</td>
</tr>
<tr>
<td height="28" align="center">确认密码:</td>
<td height="28"><input name="pwd1" type="password" size="20" maxlength="20">
*</td>
</tr>
<tr>
<td height="28" align="center">联系地址:</td>
<td ><input name="address" type="text"size="50">
*</td>
</tr>
<tr>
<td height="28" align="center">邮政编码:</td>
<td ><input name="postcode" type="text" size="20">
*</td>
</tr>
<tr>
<td height="28" align="center">身份证号:</td>
<td><input name="cardno" type="text">
*</td>
</tr>
<tr>
<td height="28" align="center">联系电话:</td>
<td><input name="tel" type="text">
*</td>
</tr>
<tr>
<td height="28" align="center" >Email:</td>
<td class="word_grey"><input name="email" type="text" size="50">
*</td>
</tr>
<tr>
<td height="34"> </td>
<td class="word_grey"><input name="Button" type="button" value="确定保存" onClick="CheckForm()">
<input name="Submit2" type="reset" value="重新填写">
<input name="Submit22" type="button" value="返回" onClick="window.location.href='../index.html'"> </td>
</tr>
</form>
</table>
<table width="770" border="1" align="center">
<tr>
<th background="../image/2.jpg" scope="col"><br>
<p align="center" style="line-height: 150%"><a href="#"><font size="2">关于我们</font></a>
<font size="2"> |
<a href=# class="link"
onclick="">加入收藏</a> | <a href=# class="link" onClick="">设为首页</a> | <a href="#">请您留言</a><br>
电子商务交易平台 版权所有<br><br><br><br>
</font>
</p></th>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -