📄 testpronce.jsp~71~
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="javascripts/prototype.js"></script>
<script type="text/javascript" src="javascripts/capxous.js"></script>
<link rel="stylesheet" type="text/css" href="styles/capxous.css" />
<style>
* {
font:12px "Segoe UI", Tahoma;
}
h3 {
font-size:16px;
font-weight:bold;
}
</style>
</head>
<body>
<h3>请输入省,地市,区县的简拼选择三级列表</h3>
<form action="infoAction.do?action=ShowInfo" method="POST" >
<table>
<input name="PID" type="hidden" id="PID" value="00000000"/>
<input name="CID" type="hidden" id="CID" value="00000000"/>
<input name="AID" type="hidden" id="AID" value="00000000"/>
<input name="Pold" type="hidden" id="Pold" value=""/>
<input name="Cold" type="hidden" id="Cold" value=""/>
<tr>
<td>
省/直辖市:<input type="text" name="pronce" size="24" style="ime-mode:disabled" onchange="clearCity();" autocomplete='off'/>
</td>
<td> </td>
<td>地级市:<input type="text" name="city" size="24" style="ime-mode:disabled" onchange="clearArea();" autocomplete='off'/>
</td>
<td> </td>
<td>区/县:<input type="text" name="area" size="24" style="ime-mode:disabled" autocomplete='off'/>
</td>
</tr>
</table>
<br />
<h3> 其他信息</h3>
<table>
<tr>
<td>
姓名:<input type="text" name="name" size="24" />
</td>
<td>E_mail:<input type="text" name="mail" size="24" />
</td>
</tr>
</table>
<center>
<input type="submit" value="提 交 信 息"/>
</center>
</form>
<script type="text/javascript">
new CAPXOUS.AutoComplete("pronce", function() {
return "infoAction.do?action=GetData_P&name=" + this.text.value;
});
</script>
<script type="text/javascript">
new CAPXOUS.AutoComplete("city", function() {
return "GetData_C.jsp?typing=" + this.text.value+"&PID="+GetPID();
});
</script>
<script type="text/javascript">
new CAPXOUS.AutoComplete("area", function() {
return "GetData_A.jsp?typing=" + this.text.value+"&CID="+GetCID();
});
</script>
<script type="" language="javascript">
function clearCity(){
document.all.city.value="";
document.all.CID.value="000000";
document.all.area.value="";
document.all.AID.value="000000";
}
function clearArea(){
document.all.area.value="";
document.all.AID.value="000000";
}
function GetPID(){
if(document.all.pronce.value=document.all.Pold.value){
return document.all.PID.value;
}
return "000000";
}
function GetCID(){
if(document.all.city.value=document.all.Cold.value){
return document.all.CID.value;
}
return "000000";
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -