两个下拉列表问题 onclick(onselectchanged)='javascriipt:document.getElementById('div id').style.display="block";document.getElementById('another div id').style.display="none";' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就是ListBox添加这个事件,我不知道你要详细什么。 最好是 用html的代码给我 <html> <body> <select ID="sel1" onchange=display(this.options[this.selectedIndex].text,"dv1"); NAME="sel1"> <option>1</option> <option>2</option> </select> <br> <div id=dv1 style="display:none"></div> <br> <select ID="sel2" onchange=display(this.options[this.selectedIndex].text,"dv2"); NAME="sel2"> <option>3</option> <option>4</option> </select> <br> <div id="dv2" style="display:none"></div> </body></html><script>function display(va,div){ var div = eval(div); div.innerHTML = "<b><big>"+va+"</big></b>"; div.style.height = 50; div.style.width = 50; div.style.backgroundColor = "lightgreen" div.style.display = "inline";}</script> 为什么不能在框架中打开指定的命名锚记? 求GLOG那样的日历 的日记提示功能 正则替换 |zyciis| 动态生成的控件加上动态循环的事件,如何执行他当前次数的值,谢谢 鼠标悬停效果ie 没问题 firefox 就不行 怎么回事啊??? href 跳转页面并触动JS函数的问题 求正则表达式大神现身!!求助 xp-sp2中 window.location.href="c:/test.txt" 脚本错误,提示没有权限。 高分求教!!!!!!!!! 页面返回或后退,能够保持原页面不变,请求数据也保留 Firefox 禁止选择,屏蔽右键 一个新手问题,请您解答!
<body>
<select ID="sel1" onchange=display(this.options[this.selectedIndex].text,"dv1"); NAME="sel1">
<option>1</option>
<option>2</option>
</select>
<br>
<div id=dv1 style="display:none"></div>
<br>
<select ID="sel2" onchange=display(this.options[this.selectedIndex].text,"dv2"); NAME="sel2">
<option>3</option>
<option>4</option>
</select>
<br>
<div id="dv2" style="display:none"></div>
</body>
</html><script>
function display(va,div)
{
var div = eval(div);
div.innerHTML = "<b><big>"+va+"</big></b>";
div.style.height = 50;
div.style.width = 50;
div.style.backgroundColor = "lightgreen"
div.style.display = "inline";
}
</script>