var SelArray = new Array();
SelArray[0] = new Array("1","ztm","书名")
SelArray[1] = new Array("1","tmpy","书名拼音")
SelArray[2] = new Array("1","dyzrsm","著译者")
SelArray[3] = new Array("1","dyzrpy","著译者拼音")
SelArray[4] = new Array("1","cbsm","出版社")
SelArray[5] = new Array("1","ssh","索书号")
SelArray[6] = new Array("2","tm","刊名")
SelArray[7] = new Array("2","ftm","副刊名")
SelArray[8] = new Array("2","issn","ISSN")
SelArray[9] = new Array("2","tykh","统一刊号")
SelArray[10] = new Array("2","yfdh","邮发代号")
SelArray[11] = new Array("2","skh","索刊号")
SelArray[12] = new Array("3","tm","刊名")
SelArray[13] = new Array("3","qs","期数")
SelArray[14] = new Array("3","wzgzz","文章及作者")
SelArray[15] = new Array("3","cbny","出版年月")
SelArray[16] = new Array("3","skh","索刊号")
function Changesel(value){
var SelObj = document.form1.select1;
SelObj.options.length = 0;
for(i=0;i<SelArray.length;i++){
if(SelArray[i][0]==value){
if (i==6*(value-1)){ SelObj.options[SelObj.options.length] = new Option(SelArray[i][2],SelArray[i][1],"selected");}
else{SelObj.options[SelObj.options.length] = new Option(SelArray[i][2],SelArray[i]);}}
思路:当value不同时,列表的值也不同,此时我想将每一个value的一串值中选种第一个.
我上面做法有错误,能否赐教???