有没有全国的省 市 区 镇的下拉联动select 去我的资源看看http://download.csdn.net/source/703171 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没发现!DC陪LZ等!可以去邮政的网站看看! http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm难道是说这个但也只有3级看来是没有了 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- saved from url=(0049)http://www.bjcan.com/hengxing/readlou.asp?id=1176 --><HTML><HEAD><TITLE>ASP四级联动做法</TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="ASP四级联动做法_files/css.css" type=text/css rel=stylesheet><SCRIPT language=javascript src="ASP四级联动做法_files/search.js"></SCRIPT><STYLE type=text/css>BODY {MARGIN: 0px}.style1 {FONT-WEIGHT: bold; FONT-SIZE: 12pt}.STYLE2 {COLOR: #5e572d; FONT-FAMILY: Arial, Helvetica, sans-serif}.STYLE3 {COLOR: #ff0000}</STYLE><META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD><BODY><TABLE cellSpacing=0 cellPadding=0 width="90%" align=center> <TBODY> <TR> <TD height=10></TD></TR></TBODY></TABLE><TABLE style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted" cellSpacing=0 cellPadding=0 width="95%" align=center border=0> <TBODY> <TR> <TD bgColor=#f1f2df height=30> <DIV class=STYLE2 align=center><SPAN class=style1>ASP四级联动做法</SPAN></DIV></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="90%" align=center> <TBODY> <TR> <TD height=10></TD></TR></TBODY></TABLE><TABLE style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted" cellSpacing=0 cellPadding=0 width="95%" align=center border=0> <TBODY> <TR> <TD bgColor=#f1f2df height=30> <DIV class=STYLE2 align=center>加入日期:2006-1-18 8:53:01 此文阅读:333 今日阅读:1 <A style="CURSOR: pointer" onclick=javascript:gofind();><SPAN class=STYLE3><STRONG>我要搜索文字</STRONG></SPAN></A></DIV></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="90%" align=center> <TBODY> <TR> <TD height=10></TD></TR></TBODY></TABLE><TABLE style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted" cellSpacing=0 cellPadding=5 width="95%" align=center border=0> <TBODY> <TR> <TD class=tr3 bgColor=#fbfbf2> <P><form name="frm"><BR><select name=school onchange="MulSelect(1)"></select><BR><select name=department onkeypress=sortMe(this) onchange="MulSelect(2)"></select><BR><select name=grade onchange="MulSelect(3)"></select><BR><select name=student></select><BR><p> </p><BR></form></P> <P><script><BR>// 四级联动<BR>var arrSel=["school","department","grade","student"]<BR>arrData=[];</P> <P>// 从数据库中读出四级联动的数据, 保存到 arrData 数组中(二维数组)<BR><%<BR>dim conn,rs<BR>set conn = Server.CreateObject("ADODB.Connection")<BR>conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.mappath("test.mdb") & ";Persist Security Info=False"<BR>set rs=conn.execute("select * from dbselect")<BR>do while not rs.eof<BR>%></P> <P>arrData[arrData.length]=["<%=trim(rs("school"))%>","<%=trim(rs("department"))%>","<%=trim(rs("grade"))%>","<%=trim(rs("student"))%>"]</P> <P><%<BR>rs.movenext<BR>loop<BR>rs.close:set rs=nothing<BR>conn.close:set conn=nothing<BR>%><BR></script></P> <P><script><BR>// 下拉框选择变化时触发的函数,用于重新生成其下级下拉框<BR>// num : 下拉框的级数, 1 表示最顶级<BR>function MulSelect(num)<BR>{<BR>var i,j,arrTemp=[];<BR>// 取得表单当前触发的下拉框的父级下拉框的值, 存放于 arrTemp 数组中(即不需要改变的值)<BR>for(i=0;i<num;i++)<BR>{<BR>arrTemp[i]=eval("document.frm."+arrSel[i]).value<BR>}<BR>if(num<arrSel.length)<BR>{<BR>// 对于触发下拉框的下一级的下拉框<BR>with(eval("document.frm."+arrSel[num]))<BR>{<BR>// 先清空内容<BR>length=0<BR>// 对所有的记录遍历<BR>for(i=0;i<arrData.length;i++)<BR>{<BR>var find=false</P> <P>// 如果父级下拉框的记录不是当前选中的值,则跳过<BR>for(j=0;j<num;j++)<BR>{<BR>if(arrTemp[j]!=arrData[i][j])<BR>{<BR>break;<BR>}<BR>}<BR>if(j!=num)<BR>{<BR>continue;<BR>}<BR>// 这里已经可以保证第 i 项记录的数据属于当前选项的子数据</P> <P>// 检查循环过程中是否已经添加了该选项,如果已有了, 则 fine = true<BR>for(m=0;m<options.length;m++)<BR>{<BR>if(options[m].text==arrData[i][num])<BR>{<BR>find=true<BR>}<BR>}<BR>// 若当前没有选项或者尚未添加该选项项,则添加之<BR>if(length==0||!find)<BR>{<BR>options[options.length]=new Option(arrData[i][num],arrData[i][num])<BR>}<BR>}</P> <P>// 递归调用生成下一级菜单的内容<BR>MulSelect((num+1))<BR>}<BR>}<BR>}</P> <P>// 调用联动函数初始化下拉框<BR>MulSelect(0)<BR></script><BR></P></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0> <TBODY> <TR> <TD height=20> </TD></TR></TBODY></TABLE></BODY></HTML> 表单字符匹配的问题 JQUERY复选框反选时背景色问题 我真郁闷了,这是啥回事呢? 如何检测输入框中是否含有某个字符串呢? 求类似CSDN论坛左边导航的代码 请教大师,做一个悬停div,跟随浏览器大小自动放在可见的右边 如何用JavaScript弹出一个带checkbox的树 【求各位老师帮我解决个小问题】:多个form怎样按顺序自动提交??? 请教:正则表达式的问题 ECharts关系图配置,求教 一个文件乱码,貌似和js有关,忘高手帮下忙!!谢谢啦!! 有段代码看不懂,请教一下~
难道是说这个
但也只有3级
看来是没有了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://www.bjcan.com/hengxing/readlou.asp?id=1176 -->
<HTML><HEAD><TITLE>ASP四级联动做法</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="ASP四级联动做法_files/css.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="ASP四级联动做法_files/search.js"></SCRIPT><STYLE type=text/css>BODY {
MARGIN: 0px
}
.style1 {
FONT-WEIGHT: bold; FONT-SIZE: 12pt
}
.STYLE2 {
COLOR: #5e572d; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.STYLE3 {
COLOR: #ff0000
}
</STYLE><META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center>
<TBODY>
<TR>
<TD height=10></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted"
cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD bgColor=#f1f2df height=30>
<DIV class=STYLE2 align=center><SPAN
class=style1>ASP四级联动做法</SPAN></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center>
<TBODY>
<TR>
<TD height=10></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted"
cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD bgColor=#f1f2df height=30>
<DIV class=STYLE2 align=center>加入日期:2006-1-18 8:53:01
此文阅读:333 今日阅读:1 <A style="CURSOR: pointer"
onclick=javascript:gofind();><SPAN
class=STYLE3><STRONG>我要搜索文字</STRONG></SPAN></A></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center>
<TBODY>
<TR>
<TD height=10></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: gray 1px dotted; BORDER-TOP: gray 1px dotted; BORDER-LEFT: gray 1px dotted; BORDER-BOTTOM: gray 1px dotted"
cellSpacing=0 cellPadding=5 width="95%" align=center border=0>
<TBODY>
<TR>
<TD class=tr3 bgColor=#fbfbf2>
<P><form name="frm"><BR><select name=school
onchange="MulSelect(1)"></select><BR><select name=department
onkeypress=sortMe(this)
onchange="MulSelect(2)"></select><BR><select name=grade
onchange="MulSelect(3)"></select><BR><select
name=student></select><BR><p> </p><BR></form></P>
<P><script><BR>// 四级联动<BR>var
arrSel=["school","department","grade","student"]<BR>arrData=[];</P>
<P>// 从数据库中读出四级联动的数据, 保存到 arrData 数组中(二维数组)<BR><%<BR>dim conn,rs<BR>set
conn = Server.CreateObject("ADODB.Connection")<BR>conn.Open
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.mappath("test.mdb") & ";Persist Security Info=False"<BR>set
rs=conn.execute("select * from dbselect")<BR>do while not
rs.eof<BR>%></P>
<P>arrData[arrData.length]=["<%=trim(rs("school"))%>","<%=trim(rs("department"))%>","<%=trim(rs("grade"))%>","<%=trim(rs("student"))%>"]</P>
<P><%<BR>rs.movenext<BR>loop<BR>rs.close:set
rs=nothing<BR>conn.close:set conn=nothing<BR>%><BR></script></P>
<P><script><BR>// 下拉框选择变化时触发的函数,用于重新生成其下级下拉框<BR>// num : 下拉框的级数, 1
表示最顶级<BR>function MulSelect(num)<BR>{<BR>var i,j,arrTemp=[];<BR>//
取得表单当前触发的下拉框的父级下拉框的值, 存放于 arrTemp
数组中(即不需要改变的值)<BR>for(i=0;i<num;i++)<BR>{<BR>arrTemp[i]=eval("document.frm."+arrSel[i]).value<BR>}<BR>if(num<arrSel.length)<BR>{<BR>//
对于触发下拉框的下一级的下拉框<BR>with(eval("document.frm."+arrSel[num]))<BR>{<BR>//
先清空内容<BR>length=0<BR>//
对所有的记录遍历<BR>for(i=0;i<arrData.length;i++)<BR>{<BR>var find=false</P>
<P>//
如果父级下拉框的记录不是当前选中的值,则跳过<BR>for(j=0;j<num;j++)<BR>{<BR>if(arrTemp[j]!=arrData[i][j])<BR>{<BR>break;<BR>}<BR>}<BR>if(j!=num)<BR>{<BR>continue;<BR>}<BR>//
这里已经可以保证第 i 项记录的数据属于当前选项的子数据</P>
<P>// 检查循环过程中是否已经添加了该选项,如果已有了, 则 fine =
true<BR>for(m=0;m<options.length;m++)<BR>{<BR>if(options[m].text==arrData[i][num])<BR>{<BR>find=true<BR>}<BR>}<BR>//
若当前没有选项或者尚未添加该选项项,则添加之<BR>if(length==0||!find)<BR>{<BR>options[options.length]=new
Option(arrData[i][num],arrData[i][num])<BR>}<BR>}</P>
<P>// 递归调用生成下一级菜单的内容<BR>MulSelect((num+1))<BR>}<BR>}<BR>}</P>
<P>//
调用联动函数初始化下拉框<BR>MulSelect(0)<BR></script><BR></P></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
<TBODY>
<TR>
<TD height=20> </TD></TR></TBODY></TABLE></BODY></HTML>