哈,多谢沙发!脚本改进了一下!可惜还是不支持键盘和滚轮!<script language="JavaScript" defer>
<!--
var oTb = document.getElementById("tbInput");
var oBtn = document.getElementById("btnSelect");
var oSel = document.getElementById("cats");
oSel.style.display = "none";document.body.onclick = function()
    {
        oSel.style.display = "none";
    };oBtn.onclick = function()
    {
        event.cancelBubble = true;
        var OptCount = oSel.options.length
        oSel.size = OptCount > 10 ? 10 : OptCount;
        oSel.style.display = "block";
    };oSel.onchange = function()
    {
        oTb.value = this.options[this.selectedIndex].text;
        oSel.style.display = "none";
    };oSel.onblur = function()
    {
        oSel.style.display = "none";
    };
//-->
</script>