nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> written by misshjn <BR><!-- <BR>function test(value){ <BR> var opt = document.getElementById("ss").innerHTML.toString(); <BR> var re = new RegExp(value,"g"); <BR> opt = opt.replace(/<OPTION|<\/OPTION>| selected|value/g,"").match(/=.*?>/g).toString().replace(/=|>/g,"").replace(re,"┢").replace(/[^,┢]/g,"").indexOf("┢"); <BR> document.getElementById("ss").getElementsByTagName("option")[opt].selected = true; <BR>} <BR>function randomselect(){ <BR> document.getElementById("ss").getElementsByTagName("option")[Math.floor(Math.random()*document.getElementById("ss").getElementsByTagName("option").length)].selected = true; <BR>} <BR>//--> <BR> <BR><!-- <BR>var opts; <BR>for (i=1900; i<2008; i++){ <BR> opts +="<option value='"+i+"'>第 "+i+" 年"; <BR>} <BR>document.write("<select id='ss'>"+opts+""); <BR>//--> <BR>