📄 90712e4c3746001c1cbeacfa6a6cf06c
字号:
<%@ page language="java" pageEncoding="GBK"%>
<HTML>
<HEAD>
<TITLE>NWPU Online Shop</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content= 该网站为方便西工大教学职工,出售各类手机产品 name=description>
<META content=西北工业大学网上购物-手机系统 name=keywords>
</HEAD>
<BODY text=#000000 bgProperties=fixed leftMargin=0 background=images/background.jpg topMargin=0 onLoad="MM_preloadImages('IMAGES/skin8/dh-new.gif','IMAGES/skin8/dh-bbs.gif')">
<CENTER>
<img src="images/title1.jpg" width="760" height="160">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="760" height=70">
<param name="movie" value="menu.swf">
<param name="quality" value="high">
<embed src="menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="70"></embed>
</object>
<form name=frm1 method="get" action="register2.jsp"
onsubmit="return chk();">
<table>
<caption align="left">
注册新用户
</caption>
<tr align="center">
<th align="right">
请填写您的昵称:
</th>
<td aligh="left">
<input type="text" name="username" onFocus="test2()"
onBlur="test1()">
</td>
<td width="250" align="left">
<TEXTAREA id=textarea1 name=textarea1 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">您的昵称可以由小写英文字母,中文、数字组成,长度4-20位</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
设定您的密码:
</th>
<td aligh="left">
<input type="password" name="pass" onFocus="pass2()"
onBlur="pass1()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea2 name=textarea2 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">您的密码可以由大小写英文字母、数字组成,长度6-12位。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
再次输入您设定的密码:
</th>
<td aligh="left">
<input type="password" name="checkpass" onFocus="checkpas2()"
onBlur="checkpas()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea3 name=textarea3 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请重复输入一遍您上面输入的密码。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
请输入验证码:
</th>
<td aligh="left">
<input size = 10 type="text" name="check" onFocus="check2()"
onBlur="check1()">
<img border=0 src="image.jsp"></img>
</td>
<td align="left" width="250">
<TEXTAREA id=textarea4 name=textarea4 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请输入您的验证码。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
请填写您的E-mail地址:
</th>
<td align="left">
<input type="text" name="email" onFocus="checkemai2()"
onBlur="checkemai()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea5 name=textarea5 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请填写有效的E-mail地址,我们会通过E-mail给您发送订单的相关信息。</TEXTAREA>
</td>
</tr>
<tr align="center">
<td align="right"><h2><font size="4">性别:</font></h2></td>
<td align="left">
<input name="sex" type="radio" value="male" /> 男
<input name="sex" type="radio" value="female" />女
</td><td></td>
</tr>
<tr align="center">
<td align="right"><h2><font size="4">固定电话:</font></h2></td>
<td align="left"><input type="text" name= "phone" onfocus= "checkphone2()"
onBlur="checkphone1()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea6 name=textarea6 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请输入你的固定电话。</TEXTAREA>
</td>
</tr>
<tr align="center">
<td align="right"><h2><font size="4">移动电话</font>:</h2></td>
<td align="left"><input type="text" name="mobile" onFocus="checkmobile2()"
onBlur="checkmobile1()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea7 name=textarea7 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请输入你的移动电话。</TEXTAREA>
</td>
</tr>
<tr align="center">
<td align="right"><h2><font size="4">年龄:</font></h2></td>
<td align="left">
<input type ="text" name= "age" maxlength = 2 onFocus="checkage2()"
onBlur="checkage1()">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea8 name=textarea8 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请输入你的年龄,以便于我们统计。</TEXTAREA>
</td>
</tr>
<tr>
<td colspan = 3><h3><font color="#ff0080">
以下是选填部分:</font>
</h3></td>
<td>
</td>
<td>
</td>
</tr>
<tr align="center">
<th align="right">
国家:
</th>
<td align="left">
<input type="text" name="state" >
</td>
<td align="left" width="250">
<TEXTAREA id=textarea9 name=textarea9 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请填写你所在的国家。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
省份:
</th>
<td align="left">
<input type="text" name="provinence" >
</td>
<td align="left" width="250">
<TEXTAREA id=textarea10 name=textarea10 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请填写所在的省份。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
城市:
</th>
<td align="left">
<input type="text" name="city">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea11 name=textarea11 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请填写所在的城市。</TEXTAREA>
</td>
</tr>
<tr align="center">
<th align="right">
街道:
</th>
<td align="left">
<input type="text" name="street">
</td>
<td align="left" width="250">
<TEXTAREA id=textarea12 name=textarea12 readOnly rows=2
style="background-color:transparent;color:#e9967a;overflow: hidden;border-style:none; cols="40">请填写所在的街道。</TEXTAREA>
</td>
</tr>
<tr align="center">
<td></td>
<td align="center">
<input size="100" name="submit" type="submit" value="注册">
</td>
<td></td>
</tr>
</table>
</form>
<script language="javascript">
function test1(){
if(document.frm1.username.value.length<4 ){
frm1.textarea1.value = "用户名至少四位,请更换";
frm1.submit.disabled=true;
}
}
function test2(){
frm1.textarea1.value = "您的昵称可以由小写英文字母,中文、数字组成,长度4-20位";
frm1.submit.disabled=false;
}
function pass1(){
if (frm1.pass.value.length <6){
frm1.textarea2.value = "请输入6位";
frm1.submit.disabled=true;
}
}
function pass2(){
frm1.textarea2.value = "您的密码可以由大小写英文字母、数字组成,长度6-12位";
frm1.submit.disabled=false;
}
function checkpas(){
if (frm1.checkpass.value!= frm1.pass.value ){
frm1.textarea3.value = "两次密码不一样";
frm1.submit.disabled=true;
}
}
function checkpas2(){
frm1.textarea3.value = "请重复输入一遍您上面输入的密码。";
frm1.submit.disabled=false;
}
function check1(){
if (frm1.check.value.length!=4 ){
frm1.textarea4.value = "四个字母";
frm1.submit.disabled=true;
}
}
function check2(){
frm1.textarea4.value = "请输入您的验证码";
frm1.submit.disabled=false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -