var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("intel型号1","1000|型号1")
group[0][1]=new Option("intel型号2","900|型号2")
group[0][2]=new Option("AMD型号3","800|型号3")
group[0][3]=new Option("AMD型号4","700|型号4")
group[1][0]=new Option("intel型号1","1000|型号1")
group[1][1]=new Option("intel型号2","900|型号2")
group[2][0]=new Option("AMD型号3","800|型号3")
group[2][1]=new Option("AMD型号4","700|型号4")
var temp=document.doublecombo.cpu
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}
这段代码是楼主写的?