两个关联的列表问题(~~~~急急急急急!!!!!!~~~~~) 自己顶一下,兄弟的javascript不好,请大家帮帮我 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 缺少对象是因为第二个select那里的change函数未定义 兄弟的javascript太差了,只能厚着脸皮伸手了,哪位兄弟能帮兄弟写出chang函数 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title> New Document </title><meta name="Generator" content="EditPlus"><meta name="Author" content=""><meta name="Keywords" content=""><meta name="Description" content=""></head><body><script language = "JavaScript" >var onecount;onecount=0;subcat = new Array(); subcat[0] = new Array("张","5","5"); subcat[1] = new Array("王","6","6"); subcat[2] = new Array("李","5","20"); subcat[3] = new Array("zch","5","31"); onecount=4;function changelocation(locationid) { document.form1.sid.length = 0; var locationid=locationid; var i; for (i=0;i < onecount; i++) { if (subcat[i][1] == locationid) { document.form1.sid.options[document.form1.sid.length] = new Option(subcat[i][0], subcat[i][2]); } } } function change(o){ alert("您选择的值是:"+o.value);}</script><form name="form1" method="post" action="" ><table width="100%" > <tr bgcolor="#FFFFFF" > <td > <div align="left" > <select size="1" name="bid" onChange="changelocation(document.form1.bid.options[document.form1.bid.selectedIndex].value)" > <option >选择 </option > <option value=5 >张家 </option > <option value=6 >王家 </option > <option value=9 >胡家 </option > </select > <select name="sid" onChange="change(this)" style= 'width:147;background-color:white;font-size:12;color:black; height:18 ' size="1" > <option selected >z </option > </select > <input name="1" type="submit" value="1" > </div > </td > </tr > </table > </form > </body></html> 相册的javascript a标签下怎么得到img下面的src 加减法的问题 使用jquery实现文字提示层并且可以在层中进行其它操作 散分 请高手指点:利用JavaScript生成的表单中如何调用JavaScript校验该表单 struts2值栈的问题 如何获得在一个页面中的link的编号? jqplot 中的shapeRenderer 画任意矩形,有知道的吗? index.jsp无法识别 一个小问题,请大家帮帮帮忙? 谁帮解释一下dreamweaver中的一段示例代码?
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body><script language = "JavaScript" >
var onecount;
onecount=0;
subcat = new Array();
subcat[0] = new Array("张","5","5");
subcat[1] = new Array("王","6","6");
subcat[2] = new Array("李","5","20");
subcat[3] = new Array("zch","5","31");
onecount=4;function changelocation(locationid)
{
document.form1.sid.length = 0; var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.form1.sid.options[document.form1.sid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
} function change(o)
{
alert("您选择的值是:"+o.value);
}
</script><form name="form1" method="post" action="" >
<table width="100%" >
<tr bgcolor="#FFFFFF" >
<td >
<div align="left" >
<select size="1" name="bid" onChange="changelocation(document.form1.bid.options[document.form1.bid.selectedIndex].value)" >
<option >选择 </option >
<option value=5 >张家 </option >
<option value=6 >王家 </option >
<option value=9 >胡家 </option >
</select >
<select name="sid" onChange="change(this)" style= 'width:147;background-color:white;font-size:12;color:black; height:18 ' size="1" >
<option selected >z </option >
</select >
<input name="1" type="submit" value="1" > </div > </td >
</tr >
</table >
</form >
</body>
</html>