I think you should understand the behaviour of "select" in html. If you want more, either you need to use Java Applet or ActiveX control or use div/layer to simulate the behaviour you want

解决方案 »

  1.   

    对,在网页中还不存在这样的组件,所以只能用模仿,而模仿的弊病就是下拉框的定位会很烦(指遇到window边框),而优点是可以被其他的层覆盖。另外想问一下无为,是不是不能不点击select而使其展开?
      

  2.   

    probably true, I tried to call its click() function, but it does not seem to work
      

  3.   

    <script>function pp(){se.options[2]=new Option(ok=(se.options[2])?se.options[2].innerText+String.fromCharCode(event.keyCode):String.fromCharCode(event.keyCode),"client")
    se.selectedIndex=2;
    }function edit(){
    if(se.options[2]){
    if(event.keyCode==8){
    var str=se.options[2].innerText;
    var len=str.length;
    se.options[2].innerText=str.substring(0,len-1);
    if(se.options[2].innerText=="")se.remove(2);
    }
    if(event.keyCode==13)return false;
    if(event.keyCode==32){
    se.options[2].innerText+=" ";}
    }
    }
    </script>
    <select id=se onkeypress=pp() onkeyup="edit()">
    <option>测试程序
    <option>Tullia
    </select>
    试试上面的程序吧,效果并不是很好,从其它地方拷来的,看上去象不能输入,其实可以
      

  4.   

    有没有专门的activeX控件实现?,你找找看,或许会有收获的~