http://expert.csdn.net/Expert/TopicView1.asp?id=1238516
解决方案 »
- 如何实现点击哪个菜单,哪个菜单变色,其余的恢复正常的效果。
- dreamweaver 的spry 菜单 如何修改源程序 把 菜单的背景色改成用图片做背景呢??
- javascript语法不是很熟悉`~请教老师终点一下
- easyui自定义验证,提示框修改
- 弱问:下载数据 JavaScript 有没有事件?
- 浮动JS代码导航在旧版浏览器中可以显示,但在火狐,Opera,猎豹等浏览器中出现不兼容-求解决
- 【手机浏览寻高手】js无法实现iframe内的跳转吗?????????????????
- <select><option 中怎么实现类似title 属性?>title</option></select>
- 在iframe中的光标位置
- 如何用js来修改已有的excel文件
- 如何实现在showModalDialog()提交不弹出新网页??怎么用net_lover(孟子E章)的方法好象不管用,请高手指点一下!!
- 怎么让摸态窗口响应事件!就在摸态窗口里运行处理一些数据!不弹出新窗口!谢谢~!再线等待!!!
<!--
var onecount;
onecount=0; subcat = new Array();
subcat[0] = new Array("徐汇区","01","001");
subcat[1] = new Array("嘉定区","01","002");
subcat[2] = new Array("黄浦区","01","003");
subcat[3] = new Array("南昌市","02","004");
subcat[4] = new Array("九江市","02","005");
subcat[5] = new Array("上饶市","02","006"); onecount=6; function changelocation(locationid)
{
document.myform.smalllocation.length = 0; var locationid=locationid;
var i;
document.myform.smalllocation.options[0] = new Option('====所有地区====','');
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.smalllocation.options[document.myform.smalllocation.length] = new Option(subcat[i][0], subcat[i][2]);
}
} } //-->
</script> <form name="myform" method="post">
<select name="biglocation" onChange="changelocation(document.myform.biglocation.options[document.myform.biglocation.selectedIndex].value)">
<option value="01" selected>上海</option>
<option value="02">江西</option>
</select>
<select name="smalllocation">
<option selected value="">==所有地区==</option>
</select>
</form>