首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

关于SELECT的无限级联(省|市|县|乡|村|...)

整理日期:2007年08月05日 【字体:

index.asp
程序代码:
<html>
<head>
<title></title>
<meta content="text/html; charset=gb2312" http-equiv="content-type">
<style type="text/css"><!--
 FONT{font-size:12px}
 TD{font-size:12px}
 A{color:#333399}
 A:hover{color:#FF6600}
--></style>
<script language="JavaScript" type="text/JavaScript"><!--
function funOnload(){
 document.all.list_file.src="jscript_city.asp?base=0&sele=0-&elem=Select01";
}

//pBase级数,以0基,
//pSele是<option 的value值
//pEle是下一级的表单名字
function chgSelect(pBase,pSele,pElem){
 //当改变了一个列表之后。清除以后的列表的值。
 for(i=parseInt(pElem.replace("Select",""));i<=5;i++){
  var tmp="000"+i;
  var pElem1=eval("document.Form1.Select"+tmp.substr(tmp.length-2));

  pElem1.length=1;
  pElem1.selectedIndex=0;
 }

 //JS用ASP得到数据库的数据来更新下级列表
 document.all.list_file.src="jscript_city.asp?base="+pBase+"&sele="+pSele+"&elem="+pElem;
}

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1186276807.html

Tags:
关于SELECT的无限级联(省|市|县|乡|村|...)
'http://www.etoow.com/html/2007-08/1186276807.html
1
 
2
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved