onclick(onselectchanged)='javascriipt:document.getElementById('div id').style.display="block";document.getElementById('another div id').style.display="none";'

解决方案 »

  1.   

    就是ListBox添加这个事件,我不知道你要详细什么。
      

  2.   

    最好是  用html的代码给我
      

  3.   

    <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>