⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testpronce.jsp~73~

📁 一个基于Struts架构
💻 JSP~73~
字号:
<%@ 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>地级市:<input type="text" name="city" size="24" style="ime-mode:disabled"   onchange="clearArea();" autocomplete='off'/>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 "GetData_P.jsp?typing=" + 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 + -