codice:
<html>
<head>
<title>by Max Holman 21jan2001</title>
<script type="text/javascript">
var timerid = null;
var matchString = "";
var mseconds = 1000;
function shiftHighlight(keyCode,targ){
keyVal = String.fromCharCode(keyCode);
matchString = matchString + keyVal;
elementCnt = targ.length - 1;
for (i = elementCnt; i > 0; i--){
selectText = targ.options[i].text.toLowerCase();
if (selectText.substr(0,matchString.length) == matchString.toLowerCase()){
targ.options[i].selected = true;
}
}
clearTimeout(timerid);
timerid = setTimeout('matchString = ""',mseconds);
return false;
}
</script>
</head>
<body>
<center>
<form name="letteraa">
<SELECT onKeyPress = "return shiftHighlight(event.keyCode, this);">
<OPTION>clicca e scrivi le iniziali</OPTION>
<OPTION>abaco</OPTION>
<OPTION>abisso</OPTION>
<OPTION>abito</OPTION>
<OPTION>abuso</OPTION>
<OPTION>accento</OPTION>
<OPTION>accesso</OPTION>
<OPTION>acciaio</OPTION>
<OPTION>accusa</OPTION>
<OPTION>acerbo</OPTION>
<OPTION>acqua</OPTION>
<OPTION>adatto</OPTION>
<OPTION>addio</OPTION>
</SELECT>
</form>
</center>
</body>
</html>
ciao