这下拉列表框弹出事件怎么不行呢?
<html>
<head>
<script language= "javascript ">
function change()
{
var typeid= " ";
for(int i=0;i <document.all.softid.options.length;i++){
if(document.all.softid.options[i].selected==true){
typeid=document.all.softid.options[i].value;
alert(typeid);
}
}
}
</script>
</head>
<body>
<span class= "STYLE2 "> 分类显示: </span> <select name= "softid " onChange= "return change(); ">
<option value= "请选择 " > 请选择 </option>
<option value= "数码 " > 数码 </option>
<option value= "运动 " > 运动 </option>
<option value= "家电 " > 家电 </option>
<option value= "服装 " > 服装 </option>
<option value= "书籍 " > 书籍 </option>
</select>
</body>
</html>
------解决方案-------------------- <html>
<head>
<script language= "javascript ">
function change(value)
{
alert(value);
}
</script>
</head>
<body>
<span class= "STYLE2 "> 分类显示: </span> <select name= "softid " onChange= "change(this.value); ">
<option value= "请选择 " > 请选择 </option>
<option value= "数码 " > 数码 </option>
<option value= "运动 " > 运动 </option>
<option value= "家电 " > 家电 </option>
<option value= "服装 " > 服装 </option>
<option value= "书籍 " > 书籍 </option>
</select>
</body>
</html>