在网上找了几个都不太理想
简单例子也可以
要求在FireFox下面可以正常使用
取值方便
不知道为什么我只能给100分如果对分数有要求解决后我可以转帐1000分之内
------解决方案--------------------
看看这个行吗?
http://www.smallrain.net/js_show.asp?id=948
------解决方案--------------------
http://www.it365cn.com/bbs/topic.asp?topicid=23178
把电子书下载下来,里面有你需要的几个经典联动菜单例子,还有其他有用的资料
------解决方案--------------------
测试页面
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> </title>
<script language= "javascript " src= "city.js "> </script>
<SCRIPT LANGUAGE = JavaScript>
var s=[ "s1 ", "s2 ", "s3 "];
var opt0=[ "省份 ", "地级市 ", "市、县级市、县 "];
function setup(){
for(i=0;i <s.length-1;i++){
document.getElementById(s[i]).onchange=new Function( "change( "+(i+1)+ ") ");}
change(0);}
</SCRIPT>
</head>
<body onload= "setup(); ">
<form name= "frm ">
<select id= "s1 "> <option> 省份 </option> </select>
<select id= "s2 "> <option> 地级市 </option> </select>
<select id= "s3 "> <option> 市、县级市、县 </option> </select>
</form>
</body>
</html>
JS文件下载地址
http://ys-e.ys168.com/ys168up/D3/?city.jsy69z79fdql9f9b3z95bci1fd0fq9b4b0fd2b2b4f6e06e15e24b1b0f2f9bp9b4fc1f9b6z
剩下的就自己搞定吧!!
------解决方案--------------------
哈哈,我看了一下代码,这个问题也简单,只要在js文件里加上这些value:
dsy.add( "0_0_5 ",[ "阜南县 ", "01 ", "阜阳市 ", "02 ", "界首市 ", "03 ", "临泉县 ", "04 ", "太和县 ", "05 ", "颖上县 ", "06 "]);
然后
for(i=0;i <ar.length;i++){
options[length]=new Option(ar[i],ar[i]);
}
改成
for(i=0;i <ar.length;i++){
options[length]=new Option(ar[i],ar[++i]);
}
即可,ohoh~
------解决方案--------------------
http://www.zgycrc.com/Main/index_1.asp
的那个天气预报的部分,点设置之后就有!
中央气象台的网站也有!
------解决方案--------------------
好难啊
------解决方案--------------------
mark
------解决方案--------------------
UP`
------解决方案--------------------
我给你,一个:
Js中写法:
//===================================================================================
//省份-市级联动Bean取得
<bean:define id= "placeKb12List " name= "outputBean " property= "placeKb12Bean " type= "java.util.ArrayList " />
<bean:size id= "size " name= "placeKb12List " />
var arrPlaceKb12List=new Array( <bean:write name= "size "/> );
//省份-市级-县市联动Bean取得
<bean:define id= "placeKb123List " name= "outputBean " property= "placeKb123Bean " type= "java.util.ArrayList " />