请问下面的代码怎么修改才能实现这个功能,就是当出现123的下拉框时,通过按上下方向键来选择123中的任何一个项目。<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">function ShowObjectName(data)
{
var objectliststr="";
var htmlstr="<select name=selobject size=10>";
for(i=0;i<data.length;i++)
{
if(data[i]!=null)objectliststr=objectliststr+"<option name='xuanze' value='"+data[i]+"'>"+data[i]+"</option>";
}
return htmlstr+objectliststr+"</select>";
}function shiyan(x)
{
if (x!=123)
{
document.getElementById("sss").innerHTML=unescape(x);
}
else
{
data=x.split("");
document.getElementById("ooo").innerHTML=data;
document.getElementById("sss").innerHTML=unescape(ShowObjectName(data));
}
}
</script>
</head><body>
<label>
<input type="text" name="textfield" id="lll" onkeyup="shiyan(this.value)" />
<div id="sss"></div>
<div id="ooo"></div>
</label>
</body>
</html>
谢谢!!