?? gcy.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!--
function isNum(passedVal){
if(passedVal=="")
{
return false;
}
for(i=0;i<passedVal.length;i++){
if(passedVal.charAt(i)<"0") {//如果輸入值小于0,則錯(cuò)誤
return false;
}
if(passedVal.charAt(i)>"9") {//如果輸入值不在0-9范圍內(nèi),則錯(cuò)誤
return false;
}
return true;
}
}
function isValid(){
var oq=document.form1.snum.value;
if(oq!=""){
if(oq.length!=8){
alert("準(zhǔn)考證號的位數(shù)不對啊");
document.form1.snum.focus();
return false;
}
if(isNum(document.form1.snum.value)==false){
alert("準(zhǔn)考證號你好象寫錯(cuò)了吧");
document.form1.snum.focus();
return false;
}
}
else {alert("您什么也沒寫呢?");
document.form1.snum.focus();
return false;
}
}
// -->
</SCRIPT>
<title>無標(biāo)題文檔</title>
<style type="text/css">
<!--
@import url("_notes/ccc");
-->
</style>
</head>
<body background="images/bg.gif">
<table width="201" height="363" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">
<table width="194" height="156" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><form action="gzl.jsp" method="post" name="form1" target="mainFrame" onSubmit="return isValid();">
<table width="196" height="109" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="ccc"><div align="center">請輸入準(zhǔn)考證號</div></td>
</tr>
<tr>
<td><div align="center">
<input name="snum" type="text" size="8" maxlength="8">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="查詢">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="204" border="0">
<tr>
<td><form action="smessage.htm" method="post" name="form2" target="_parent">
<div align="center">
<input type="submit" name="Submit2" value="結(jié)束查詢">
</div>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -