用戶註冊常用校驗

校驗詳情:

      1. 每個輸入框,鼠標移入,移出時,跟隨浮出信息提示(正確的數據輸入格式)

      2. 每個輸入框,輸入數據時,格式錯誤,輸入框變紅,輸入框後給出紅色文字提示;輸入正確時,輸入框變回之前樣式,錯誤提示文字消失

      3. 全部輸入完畢或不輸入任何數據直接點"註冊"按鈕時,對輸入框,從上至下依次校驗,如果全部正確,提交後臺;

JS校驗代碼:

<span style="color:#CC0000;"><strong><span style="font-size:14px;">reg.js</span></strong></span>

function reg_input(e, str) {
	var oThis = arguments.callee;
	if (!str) {
		oThis.sug.style.visibility = 'hidden';
		document.onmousemove = null;
		return;
	}
	if (!oThis.sug) {
		var div = document.createElement('div'),
			css = 'top:0; left:0; position:absolute; z-index:100; visibility:hidden';
		div.style.cssText = css;
		div.setAttribute('style', css);
		var sug = document.createElement('div'),
			css = 'font:normal 12px/16px "宋體"; white-space:nowrap; color:#666; padding:3px; position:absolute; left:0; top:0; z-index:10; background:#f9fdfd; border:1px solid #0aa';
		sug.style.cssText = css;
		sug.setAttribute('style', css);
		var dr = document.createElement('div'),
			css = 'position:absolute; top:3px; left:3px; background:#333; filter:alpha(opacity=50); opacity:0.5; z-index:9';
		dr.style.cssText = css;
		dr.setAttribute('style', css);
		var ifr = document.createElement('iframe'),
			css = 'position:absolute; left:0; top:0; z-index:8; filter:alpha(opacity=0); opacity:0';
		ifr.style.cssText = css;
		ifr.setAttribute('style', css);
		div.appendChild(ifr);
		div.appendChild(dr);
		div.appendChild(sug);
		div.sug = sug;
		document.body.appendChild(div);
		oThis.sug = div;
		oThis.dr = dr;
		oThis.ifr = ifr;
		div = dr = ifr = sug = null;
	}
	var e = e || window.event,
		obj = oThis.sug,
		dr = oThis.dr,
		ifr = oThis.ifr;
	obj.sug.innerHTML = str;

	var w = obj.sug.offsetWidth,
		h = obj.sug.offsetHeight,
		dw = document.documentElement.clientWidth || document.body.clientWidth;
	dh = document.documentElement.clientHeight || document.body.clientHeight;
	var st = document.documentElement.scrollTop || document.body.scrollTop,
		sl = document.documentElement.scrollLeft || document.body.scrollLeft;
	var left = e.clientX + sl + 17 + w < dw + sl && e.clientX + sl + 15 || e.clientX + sl - 8 - w,
		top = e.clientY + st + 17 + h < dh + st && e.clientY + st + 17 || e.clientY + st - 5 - h;
	obj.style.left = left + 10 + 'px';
	obj.style.top = top + 10 + 'px';
	dr.style.width = w + 'px';
	dr.style.height = h + 'px';
	ifr.style.width = w + 3 + 'px';
	ifr.style.height = h + 3 + 'px';
	obj.style.visibility = 'visible';
	document.onmousemove = function(e) {
		var e = e || window.event,
			st = document.documentElement.scrollTop || document.body.scrollTop,
			sl = document.documentElement.scrollLeft || document.body.scrollLeft;
		var left = e.clientX + sl + 17 + w < dw + sl && e.clientX + sl + 15 || e.clientX + sl - 8 - w,
			top = e.clientY + st + 17 + h < dh + st && e.clientY + st + 17 || e.clientY + st - 5 - h;
		obj.style.left = left + 'px';
		obj.style.top = top + 'px';
	}
}

function user_reg() {
	if (document.getElementById('username').value == '') {
		document.getElementById('ulog').innerHTML = "<font color='red'>  用戶名不能爲空!</font>";
		return false;
	}
	var reg = new RegExp("^[_a-zA-Z0-9]{6,20}$");

	if (!reg.test(document.getElementById('username').value)) {
		document.getElementById('ulog').innerHTML = "<font color='red'>  用戶名只能由6~20個字母數字組成!</font>";
		return false;
	}

	var reg1 = new RegExp("^[a-zA-Z]{6,20}$");

	if (reg1.test(document.getElementById('username').value)) {
		document.getElementById('ulog').innerHTML = "<font color='red'>  用戶名只能由6~20個字母數字組成,且至少含有1個數字!</font>";
		return false;
	}
	var reg2 = new RegExp("^[0-9]{6,20}$");

	if (reg2.test(document.getElementById('username').value)) {
		document.getElementById('ulog').innerHTML = "<font color='red'>  用戶名只能由6~20個字母數字組成,且至少含有1個字母!</font>";
		return false;
	}
	document.getElementById('ulog').innerHTML = "";
	return true;
}

function pass_reg() {
	if (document.getElementById('password').value == '') {
		document.getElementById('plog').innerHTML = "<font color='red'>  密碼不能爲空!</font>";
		return false;
	}

	if (document.getElementById('password').value == document
		.getElementById('username').value) {
		document.getElementById('plog').innerHTML = "<font color='red'>  密碼不能與用戶名相同!</font>";
		return false;
	}
	var reg = new RegExp("^[_a-zA-Z0-9]{6,20}$");

	if (!reg.test(document.getElementById('password').value)) {
		document.getElementById('plog').innerHTML = "<font color='red'>  密碼只能由6~20個字母數字組成!</font>";
		return false;
	}
	var reg11 = new RegExp("^[a-zA-Z]{6,20}$");

	if (reg11.test(document.getElementById('password').value)) {
		document.getElementById('plog').innerHTML = "<font color='red'>  密碼只能由6~20個字母數字組成,且至少含有1個數字!</font>";
		return false;
	}
	var reg21 = new RegExp("^[0-9]{6,20}$");

	if (reg21.test(document.getElementById('password').value)) {
		document.getElementById('plog').innerHTML = "<font color='red'>  密碼只能由6~20個字母數字組成,且至少含有1個字母!</font>";
		return false;
	}
	document.getElementById('plog').innerHTML = "";
	return true;
}

function newpass_reg() {
	if (document.getElementById('newPassword').value == '') {
		document.getElementById('nplog').innerHTML = "<font color='red'>  確認密碼不能爲空!</font>";
		return false;
	}
	if (document.getElementById('newPassword').value != document
		.getElementById('password').value) {
		document.getElementById('nplog').innerHTML = "<font color='red'>  兩次密碼不一致!</font>";
		return false;
	}
	document.getElementById('nplog').innerHTML = "";
	return true;
}

function email_reg() {
	if (document.getElementById('email').value == '') {
		document.getElementById('elog').innerHTML = "<font color='red'>  郵箱不能爲空!</font>";
		return false;
	}
	if (!isEmail(document.getElementById('email').value)) {
		document.getElementById('elog').innerHTML = "<font color='red'>  電子郵箱格式不正確!</font>";
		return false;
	}
	document.getElementById('elog').innerHTML = "";
	return true;
}

function code_reg() {
	if (document.getElementById('code').value == '') {
		document.getElementById('clog').innerHTML = "<font color='red'> * 驗證碼不能爲空!</font>";
		return false;
	}
	document.getElementById('clog').innerHTML = "";
	return true;
}

function tel_reg() {
	if (document.getElementById('tel').value != '') {
		var telephone = document.getElementById('tel').value;
		var reg11 = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
		// 手機,固話同時驗證
		if (!reg11.test(telephone)) {
			document.getElementById('tlog').innerHTML = "<font color='red'> * 請輸入正確的固話或11位手機號碼!</font>";
			return false;
		}
	}
	document.getElementById('tlog').innerHTML = "";
	return true;
}

function ent_reg() {
	if (document.getElementById("enterprise") == '') {
		document.getElementById("entlog").innerHTML = "<font color='red'>  單位不能爲空!</font>";
		return false;
	}
	document.getElementById('entlog').innerHTML = "";
	return true;
}

function pro_reg() {
	if (document.getElementById("provinceId") == '') {
		document.getElementById("prolog").innerHTML = "<font color='red'>  單位不能爲空!</font>";
		return false;
	}
	document.getElementById('prolog').innerHTML = "";
	return true;
}

function isEmail(strEmail) {
	if (strEmail
		.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}

function nor_reg() {
	if (user_reg() && pass_reg() && newpass_reg() && email_reg() && code_reg() && tel_reg()) {
		return true;
	} else {
		return false;
	}
}

function stu_reg() {
	if (user_reg() && pass_reg() && newpass_reg() && email_reg() && code_reg() && tel_reg() && ent_reg()) {
		return true;
	} else {
		return false;
	}
}

註冊頁面代碼:

<span style="color:#CC0000;"><strong><span style="font-size:14px;">regist.html</span></strong></span>

<!DOCTYPE html>

<head>
	<meta charset="utf-8">
	<title>reg html</title>

	<link rel="stylesheet" type="text/css" href="<%=staticfilePath%>css/saas/dljzptStyleIE.css" />
	<style type="text/css">
		.mask_iframe {
			border: 0px;
			padding: 0px;
			margin: 0px;
			position: absolute;
			height: 100%;
			width: 100%;
			background-color: black;
			z-index: -1;
			opacity: .70;
			filter: alpha(opacity=70);
		}
		.maskbg {
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: black;
			z-index: 1001;
			opacity: .70;
			filter: alpha(opacity=70);
		}
		#show {
			position: absolute;
			top: 50%;
			left: 50%;
			margin-top: -16px;
			margin-left: -16px;
			z-index: 1002;
			opacity: 1;
			filter: alpha(opacity=100);
		}
	</style>
	<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="js/reg.js"></script>
	<script type="text/javascript">
		function changeCode() {
			var img = document.getElementById('imgCode');
			img.src = "<%=basePath%>" + "CodeServlet?cache=" + (new Date());
		}
	</script>
	<script type="text/javascript">
		function createHttpRequest() {
			if (window.XMLHttpRequest) {
				this.xmlHttp = new XMLHttpRequest();
			} else if (window.ActiveXObject) {
				try {
					this.xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					try {
						this.xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
					} catch (e) {}
				}
			}
		}

		function sendRequest(url, method, data, handle, flag, mask) {
			url = url ? url : "";
			if (url == "") {
				return;
			}
			if (mask) {
				document.getElementById('bg').style.display = 'block';
			}
			flag = flag === false ? false : true;
			method = method ? method : "get";
			data = data ? data : null;
			var xmlHttp = new createHttpRequest();
			var handleResponse = handle ? function() {
				if (xmlHttp.xmlHttp.readyState == 4) {
					if (xmlHttp.xmlHttp.status == 200) {
						//alert(xmlHttp.xmlHttp.responseText);
						try {
							var o = eval("(" + xmlHttp.xmlHttp.responseText + ")");
						} catch (e) {
							alert(url);
						}
						//alert(o.message.message);
						handle(xmlHttp.xmlHttp);
					} else {
						//alert("您的頁面有異常");
					}
				}
			} : function() {
				if (xmlHttp.xmlHttp.readyState == 4) {
					if (xmlHttp.xmlHttp.status == 200) {
						try {
							var o = eval("(" + xmlHttp.xmlHttp.responseText + ")");
							if (o.message.success) {} else {
								//alert(o.message.message);
							}
						} catch (e) {
							alert(xmlHttp.xmlHttp.responseText);
						}

					} else {
						//alert("您的頁面有異常");
					}
				}
			};
			xmlHttp.xmlHttp.onreadystatechange = handleResponse;
			xmlHttp.xmlHttp.open(method, url, flag);
			xmlHttp.xmlHttp.setRequestHeader('Content-Type', 'application/application/json');
			xmlHttp.xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
			setTimeout(function() {
				xmlHttp.xmlHttp.send(data)
			}, 0);
		}
		var ps = '';

		function register(e) {
			e = e ? e : window.event;
			if (!stu_reg()) {
				return;
			}
			ps = '{username:"' + document.getElementById('username').value;
			ps += '",password:"' + document.getElementById('password').value;
			ps += '",newPassword:"' + document.getElementById('newPassword').value;
			ps += '",truename:"' + document.getElementById('truename').value;
			ps += '",telephone:"' + document.getElementById('tel').value;
			ps += '",email:"' + document.getElementById('email').value;
			ps += '",yzm:"' + document.getElementById('code').value;
			ps += '",sshy:"' + document.getElementById('sshy').value;
			ps += '",provinceId:"' + document.getElementById('provinceId').value;
			ps += '",enterprise:"' + document.getElementById('enterprise').value;
			ps += '"}';
			sendRequest("<%=basePath%>" + 'tr_UsersAction.do?method=userRegister', 'post', ps, register_handler, true, true);
		}

		function register_nomal(e) {
			e = e ? e : window.event;
			if (!nor_reg()) {
				return;
			}
			ps = '{username:"' + document.getElementById('username').value;
			ps += '",password:"' + document.getElementById('password').value;
			ps += '",newPassword:"' + document.getElementById('newPassword').value;
			ps += '",truename:"' + document.getElementById('truename').value;
			ps += '",telephone:"' + document.getElementById('tel').value;
			ps += '",email:"' + document.getElementById('email').value;
			ps += '",yzm:"' + document.getElementById('code').value;
			ps += '",sshy:"' + document.getElementById('sshy1').value;
			ps += '"}';
			sendRequest("<%=basePath%>" + 'HomePageAction.do?method=saveRegister', 'post', ps, register_handler, true, true);
		}

		function register_handler(xmlHttp) {
			document.getElementById('bg').style.display = 'none';
			var o = eval("(" + xmlHttp.responseText + ")");
			if (o.success) {
				//document.getElementById('top_div').innerHTML='註冊成功,正在登陸...';
				document.getElementById('register_form').submit();
			} else {
				alert(o.message);
			}
		}

		function keySubmit(event) {
			var evt = (event) ? event : ((window.event) ? window.event : "") //兼容IE和Firefox獲得keyBoardEvent對象
			var key = event.keyCode ? evt.keyCode : event.which; //兼容IE和Firefox獲得keyBoardEvent對象的鍵值
			if (evt.keyCode == 13) {
				register(evt);
			}
		}

		function isEmail(strEmail) {
			if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
				return true;
			else
				return false;
		}



		function regsub() {
			var nor = document.getElementById('nor').checked;
			var stu = document.getElementById('nor1').checked;
			if (nor) {
				register_nomal();
			}
			if (stu) {
				register();
			}
		}

		function regtype() {
			var nor = document.getElementById('nor').checked;
			var stu = document.getElementById('nor1').checked;
			var stu1 = document.getElementById('stu1');
			var stu2 = document.getElementById('stu2');
			var stu3 = document.getElementById('stu3');
			var stu4 = document.getElementById('stu4');
			var stu5 = document.getElementById('stu5');
			stu1.style.display = nor ? "none" : "";
			stu2.style.display = nor ? "none" : "";
			stu3.style.display = nor ? "none" : "";
			stu4.style.display = nor ? "none" : "";
			stu5.style.display = nor ? "" : "none";
		}

		function input_over(e) {
			var e = e ? e : window.event;
			var s = e.target ? e.target : e.srcElement;
			if (s.className.indexOf("input_focus") == -1) {
				s.className = "input_over";
			}
		}

		function input_out(e) {
			var e = e ? e : window.event;
			var s = e.target ? e.target : e.srcElement;
			if (s.className.indexOf("input_focus") == -1) {
				s.className = "";
			}
		}

		function input_focus(e) {
			var e = e ? e : window.event;
			var s = e.target ? e.target : e.srcElement;
			s.className = "input_focus";
		}

		function input_blur(e) {
			var e = e ? e : window.event;
			var s = e.target ? e.target : e.srcElement;
			s.className = "";
		}
	</script>
	<script type="text/javascript" language="javascript">
		 //獲取IP
		$(document).ready(function() {
			$.post("<%=basePath%>" + 'IpdataAction.do?method=getip', {
				ip: '<%=request.getRemoteAddr()%>'
			}, function(data) {
				var jsonObj = eval("(" + data + ")"); //獲取data轉化成json
				if (jsonObj.length > 0) {
					$("#provinceId option[value='" + jsonObj[0].countryid + "']").attr("selected", true); //修改默認值
				}
			});
		});
	</script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#username").bind('blur', function() {
				if (user_reg()) {
					$("#username").css("border-color", "#b5b5b5");
					var params = {
						username: $("#username").val()
					};
					$.ajax({
						url: "<%=basePath%>" + 'HomePageAction.do?method=checkUsername',
						data: params,
						type: 'post',
						dataType: 'json',
						success: function(data) {
							if (data.success == false) {
								$("#username").css("border-color", "red");
								document.getElementById('ulog').innerHTML = "<font color='red'> * 用戶名已存在!</font>";
							} else {
								$("#username").css("border-color", "#b5b5b5");
							}
						},
						error: function() {
							alert("用戶名驗證失敗");
						}
					});
				} else {
					$("#username").css("border-color", "red");
					return;
				}

			});
			$("#email").bind('blur', function() {
				if (email_reg()) {
					$("#email").css("border-color", "#b5b5b5");
					var params = {
						email: $("#email").val()
					};
					$.ajax({
						url: "<%=basePath%>" + 'HomePageAction.do?method=checkUserEmail',
						data: params,
						type: 'post',
						dataType: 'json',
						success: function(data) {
							if (data.success == false) {
								$("#email").css("border-color", "red");
								document.getElementById('elog').innerHTML = "<font color='red'> * 郵箱已經被使用!</font>";
							}
						},
						error: function() {
							alert("郵箱驗證失敗");
						}
					});
				} else {
					$("#email").css("border-color", "#b5b5b5");
					return;
				}
			});
			$("#password").bind('blur', function() {
				if (!pass_reg()) {
					$("#password").css("border-color", "red");
				} else {
					$("#password").css("border-color", "#b5b5b5");
				}
			});
			$("#newPassword").bind('blur', function() {
				if (!newpass_reg()) {
					$("#newPassword").css("border-color", "red");
				} else {
					$("#newPassword").css("border-color", "#b5b5b5");
				}
			});
			$("#code").bind('blur', function() {
				if (!code_reg()) {
					$("#code").css("border-color", "red");
				} else {
					$("#code").css("border-color", "#b5b5b5");
				}
			});
			$("#tel").bind('blur', function() {
				if (!tel_reg()) {
					$("#tel").css("border-color", "red");
				} else {
					$("#tel").css("border-color", "#b5b5b5");
				}
			});
		});
	</script>
	<style type="text/css">
		select {
			background: url(...) repeat-x top left;
			height: 24px;
			line-height: 24px;
			vertical-align: middle;
			border: 1px solid #b5b5b5;
			font-size: 14px;
			vertical-align: middle;
		}
		option {
			vertical-align: middle;
			height: 24px;
			line-height: 24px;
			font-size: 14px;
		}
	</style>
</head>

<body>

	<jsp:include page="top.jsp"></jsp:include>
	<div id="top_tihuan"></div>

	<div>
		<form>
			<table align="center">
				<tr>
					<td height="40px" valign="center" align="right">註冊類型:</td>
					<td height="40px" width="500px" valign="center" align="left" style="vertical-align: middle;">
						<input type="radio" name="type" id="nor" checked="checked" οnchange="regtype()" οnclick="regtype()">
						<label style="height: 40px;">AA</label>   
						<input type="radio" name="type" id="nor1" οnchange="regtype()" οnclick="regtype()">
						<label>BB</label>
					</td>
				</tr>
				<tr>
					<td height="40px" valign="center" align="right">用戶名:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" maxlength="20" id="username" style="width:160px;" name="j_username" οnmοuseοver="reg_input(event,' 6~20個字母或數字(至少包含一個字母和一個數字)')" οnmοuseοut="reg_input(event, 0)"><span style="color:red;margin-left:10px;">*</span><span id="ulog" style="margin-left:10px;"></span>
					</td>
				</tr>

				<tr>
					<td height="40px" valign="center" align="right">密碼:</td>
					<td height="40px" valign="center" align="left">
						<input id="password" name="j_password" maxlength="20" type="password" style="width:160px;" οnmοuseοver="reg_input(event,' 6~20個字母和數字(至少包含一個字母和一個數字並且密碼和用戶名不能相同)')" οnmοuseοut="reg_input(event, 0)"><span style="color:red;margin-left:10px;">*</span><span id="plog"></span>
					</td>
				</tr>

				<tr>
					<td height="40px" valign="center" align="right">確認密碼:</td>
					<td height="40px" valign="center" align="left">
						<input id="newPassword" name="newPassword" maxlength="20" type="password" style="width:160px;" size="26" οnmοuseοver="reg_input(event,'和密碼一致')" οnmοuseοut="reg_input(event, 0)"><span style="color:red;margin-left:10px;">*</span><span id="nplog"></span>
					</td>
				</tr>
				<tr>
					<td height="40px" valign="center" align="right">郵箱:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" style="width:160px;" id="email" name="email" οnmοuseοver="reg_input(event,' 如:[email protected],用作找回密碼,請保證郵箱格式的準確性')" οnmοuseοut="reg_input(event, 0)"><span style="color:red;margin-left:10px;">*</span><span id="elog"></span>
					</td>
				</tr>
				<tr id="stu1">
					<td height="40px" valign="center" align="right">QQ:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" class="post_input" style="width:160px;" id="qqnum" name="qqnum" οnmοuseοver="reg_input(event,' 方便實訓老師和您溝通,請輸入常用的QQ號碼!')" οnmοuseοut="reg_input(event, 0)">
					</td>
				</tr>
				<tr>
					<td height="40px" valign="center" align="right">真實姓名:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" class="post_input" style="width:160px;" id="truename" name="truename" οnmοuseοver="reg_input(event,' 請輸入真實姓名!')" οnmοuseοut="reg_input(event, 0)">
					</td>
				</tr>
				<tr>
					<td height="40px" valign="center" align="right">電話:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" class="post_input" style="width:160px;" id="tel" name="telephone" οnmοuseοver="reg_input(event,' 方便實訓老師和您溝通,請輸入正確的固話或11位手機號碼!')" οnmοuseοut="reg_input(event, 0)"><span id="tlog"></span>
					</td>
				</tr>

				<tr id="stu2">
					<td height="40px" valign="center" align="right">單位:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="26" style="width:160px;" id="enterprise" name="enterprise" οnmοuseοver="reg_input(event,' 如:XX學校、XX學院')" οnmοuseοut="reg_input(event, 0)"><span style="color:red;margin-left:10px;">*</span><span id="entlog"></span>
					</td>
				</tr>
				<tr id="stu3">
					<td height="40px" valign="center" align="right">省份:</td>
					<td height="40px" valign="center" align="left">
						<select name="provinceId" id="provinceId" style="width: 160px;">
							<option value="D24">
								上海
							</option>
							<option value="D22">
								北京
							</option>
							<option value="D26">
								重慶
							</option>
							<option value="D25">
								天津
							</option>
							<option value="D18">
								新疆
							</option>
							<option value="D19">
								廣西
							</option>
							<option value="D20">
								西藏
							</option>
							<option value="D21">
								寧夏
							</option>
							<option value="D23">
								黑龍江省
							</option>
							<option value="D1">
								遼寧省
							</option>
							<option value="D29">
								河北省
							</option>
							<option value="D30">
								山西省
							</option>
							<option value="D31">
								陝西省
							</option>
							<option value="D32">
								甘肅省
							</option>
							<option value="D33">
								青海省
							</option>
							<option value="D17">
								內蒙古
							</option>
							<option value="D16">
								廣東省
							</option>
							<option value="D2">
								安徽省
							</option>
							<option value="D3">
								江蘇省
							</option>
							<option value="D4">
								浙江省
							</option>
							<option value="D5">
								河南省
							</option>
							<option value="D6">
								湖北省
							</option>
							<option value="D7">
								湖南省
							</option>
							<option value="D8">
								江西省
							</option>
							<option value="D9">
								臺灣省
							</option>
							<option value="D15">
								貴州省
							</option>
							<option value="D14">
								四川省
							</option>
							<option value="D13">
								海南省
							</option>
							<option value="D12">
								吉林省
							</option>
							<option value="D11">
								雲南省
							</option>
							<option value="D10">
								福建省
							</option>
							<option value="D34">
								山東省
							</option>
							<option value="D28">
								澳門
							</option>
							<option value="D27">
								香港
							</option>
						</select>
						<span style="color:red;margin-left: 10px;">*</span><span id="prolog"></span>
						<input type="hidden" id="ip" name="ip" value="<%=ip %>" />
					</td>
				</tr>

				<tr>
					<td height="40px" valign="center" align="right">驗證碼:</td>
					<td height="40px" valign="center" align="left">
						<input type="text" size="8" id="code" name="code" οnmοuseοver="reg_input(event,' 請準確輸入右側圖片中的驗證碼!')" οnmοuseοut="reg_input(event, 0)">
						<a href="javascript:changeCode();">

										<img style="margin-left:15px;" align="absmiddle" id="imgCode" src="<%=basePath%>CodeServlet">

									</a>
						<span id="clog" style="margin-left:34px;"></span>
					</td>
				</tr>

				<tr id="stu4">
					<td height="40px" valign="center" align="right">所屬行業:</td>
					<td height="40px" valign="center" align="left">
						<select id="sshy" name="sshy" style="width:160px;">
							<option value="教育">教育</option>
						</select>
						<input type="hidden" name="mkxz" value="yymk">
					</td>
				</tr>
				<tr id="stu5">
					<td height="40px" valign="center" align="right">所屬行業:</td>
					<td height="40px" valign="center" align="left">
						<select id="sshy1" name="sshy1" style="width:160px;">
							<option value="IT/通信/電子/互聯網">IT/通信/電子/互聯網</option>
							<option value="金融業">金融業</option>
							<option value="房地產/建築業">房地產/建築業</option>
							<option value="商業服務">商業服務</option>
							<option value="造紙及紙製品/印刷業">造紙及紙製品/印刷業</option>
							<option value="貿易/批發/零售業">貿易/批發/零售業</option>
							<option value="文教體育/工藝美術">文教體育/工藝美術</option>
							<option value="加工製造/儀表設備">加工製造/儀表設備</option>
							<option value="交通運輸倉儲">交通運輸倉儲</option>
							<option value="製藥醫療/生物/衛生保健">製藥醫療/生物/衛生保健</option>
							<option value="教育">教育</option>
							<option value="酒店/餐飲/旅遊">酒店/餐飲/旅遊</option>
							<option value="文化/體育/娛樂業">文化/體育/娛樂業</option>
							<option value="能源/電氣/採掘/地質/石油加工">能源/電氣/採掘/地質/石油加工</option>
							<option value="政府/非盈利機構">政府/非盈利機構</option>
							<option value="農林牧漁/其他">農林牧漁/其他</option>
						</select>
						<input type="hidden" name="mkxz" value="yymk">
					</td>
				</tr>
				<tr>
					<td></td>
					<td><a href="javascript:regsub();" οnmοuseοver="this.style.backgroundPosition='0 -31px'" οnmοuseοut="this.style.backgroundPosition='0 0'" οnmοusedοwn="this.style.backgroundPosition='0 -62px'" οnmοuseup="this.style.backgroundPosition='0 -31px'">註冊 </a>
					</td>
				</tr>

			</table>
		</form>
	</div>

	<jsp:include page="bottom.jsp"></jsp:include>
	<script type="text/javascript">
		regtype();
	</script>
</body>

</html>



發佈了19 篇原創文章 · 獲贊 2 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章