?? register1.asp
字號:
<html>
<head>
<title>用戶注冊</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
var bV=parseInt(navigator.appVersion);
var IE4=((document.all)&&(bV>=4))?true:false;
var NS4=(document.layers)?true:false;
var z=0;
function LayerV(LayerName,V){
E=eval('document.'+LayerName);
if(IE4) E=eval('document.all.'+LayerName+'.style');
E.visibility=(V?'visible':'hidden');
}
//////////////////////////////////////////////////////////
//下面這個函數實現了當點擊圖片時,把圖片選上
function select(image1){
var html,url1
url1=image1.src
form1.face.value=url1
LayerV('Zhong',z=1-z)
look0.src=url1
form1.look.src=url1
}
///////////////////////////////////////////////
function check(){
if (form1.username.value==""){
alert("用戶名不能為空,這是您的帳號!");
return false;
}
else if(form1.password.value==""){
alert("密碼不能為空!");
return false;
}
else if(form1.password2.value==""){
alert("確認密碼不能為空!");
return false;
}
else if(form1.password.value!=form1.password2.value){
alert("密碼與確認密碼應該相同!");
return false;
}
else if(form1.nickname.value==""){
alert("呢稱不能為空!");
return false;
}
else {
return true;
}
}
</script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onresize() {
if(window.screen.width != 470 || window.screen.height != 360 ){
window.resizeTo(470,360)
}
}
function window_onload() {
w=screen.width /2 -230
h=screen.height /2 -180
window.moveTo (w,h)
}
//-->
</script>
<style type="text/css">
<!--
td { font-size: 9pt}
.short { font-size: 3px}
-->
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<body bgcolor=menu text="#000000" onresize="return window_onresize()" onload="window_onload();window_onresize()" leftmargin="0" topmargin="0">
<table width="465" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="465" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="65"> </td>
</tr>
<tr>
<td align="right">
<div id=pic> <b><img src="face/1-1.bmp" onClick="javascript:LayerV('Zhong',z=1-z)" name="look0"><a href=# onClick="javascript:LayerV('Zhong',z=1-z)"><font style="font-family: Webdings;">6</font></a></b>
</div>
<!--
<div id="Zhong" style="position:relative absolute ;visibility:hidden ;z-index:1;width:50px ;height:150px ;overflow:auto;">
</div>
//-->
<div id="Zhong" style="position:relative;visibility:hidden ; width:50px; height:150px; z-index:1;overflow:auto;">
<% for i=1 to 85%>
<img src="face/<%=i%>-1.bmp" onClick="javascript:select(this)"><br>
<%next%>
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
<form name="form1" method="post" action="save.asp" onsubmit="return check()">
<td class="short"> <br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="0" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000">
<tr>
<td width="70">基本資料</td>
<td width="109"> </td>
<td width="50"> </td>
<td width="68"> </td>
</tr>
<tr>
<td align="center" width="70">我的肖像</td>
<td width="109">用戶名</td>
<td width="50">年齡</td>
<td width="68">性別</td>
</tr>
<tr>
<td rowspan="4" width="70" align="center"> <b><img src="face/1-1.bmp" name="look"></b>
<input type="hidden" name="face" size="4">
</td>
<td height="26" width="109"><b>
<input type="text" name="username" style="width:100">
</b></td>
<td height="26" width="50"><b>
<input type="text" name="age" style="width:40">
</b></td>
<td height="26" width="68"><b>
<select name="select" style="width:60">
<option value="girl" selected>美女</option>
<option value="boy">帥哥</option>
</select>
</b></td>
</tr>
<tr>
<td width="109">密碼</td>
<td colspan="2">校驗密碼</td>
</tr>
<tr>
<td width="109"><b>
<input type="password" name="password" style="width:100">
</b></td>
<td colspan="2"><b>
<input type="password" name="password2" style="width:100">
</b></td>
</tr>
</table><br>
<table width="100%" border="0" cellspacing="2" cellpadding="0" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000">
<tr>
<td>所在地區</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>國家/地區</td>
<td>省份</td>
<td>城市</td>
</tr>
<tr>
<td>
<select name="country" style="width:108">
<option value="中華人民共和國" selected>中華人民共和國</option>
<option value="其它">其它</option>
</select>
</td>
<td>
<select name="province" style="width:90">
</select>
</td>
<td>
<input name="city" style="width:75">
</td>
</tr>
</table><br>
<table width="100%" border="0" cellspacing="2" cellpadding="0" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000">
<tr>
<td width="23%">密碼保護</td>
<td width="40%"> </td>
<td width="37%"> </td>
</tr>
<tr>
<td width="23%" align="right">昵稱:</td>
<td width="40%"><b>
<input type="text" name="nickname" style="width:115">
</b></td>
<td rowspan="3" width="37%">注意: </td>
</tr>
<tr>
<td width="23%" align="right">E-MAIL:</td>
<td width="40%"><b>
<input type="text" name="email" style="width:115">
</b></td>
</tr>
<tr>
<td width="23%" align="right">OICQ:</td>
<td width="40%"><b>
<input type="text" name="oicq" style="width:115">
</b></td>
</tr>
</table></td>
</form>
<td width="15"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="19">
<hr>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" name="add" value="確定">
<input type="reset" name="reset" value="重寫">
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -