<% openconn createrec objrec.source="Select * from pline where pior='99' and pid='4'order by code" objrec.open %> <script language = "JavaScript"> <!-- var onecount=0; subcat=new array(); <% count=0 do while not objrec.eof %> subcat[<%=count%>]=new array("<%=trim(objrec("pLinename"))%>"); <%count=count+1 objrec.movenext loop objrec.close set objrec=nothing %> onecount=<%=count%>
function setField(source,target,tiao,chanshu) { //alert(source.options(source.selectedIndex).value); if (source.options(source.selectedIndex).value=="LCD") { document.all("text1").style.display ="none"; var oOption = document.createElement('OPTION'); target.options.length = 0; oOption.text = "8字"; oOption.value = "8字"; target.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "字符"; oOption.value = "字符"; target.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "点阵"; oOption.value = "点阵"; target.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "其他"; oOption.value = "其他"; target.options.add(oOption);
} if (source.options(source.selectedIndex).value=="LCM") { document.all("text1").style.display =""; target.options.length = 0; var oOption = document.createElement('OPTION'); oOption.text = "外形尺寸"; oOption.value = "psize"; target.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "工艺"; oOption.value = "gongyi"; target.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "点阵尺寸"; oOption.value = "showsize"; target.options.add(oOption); } if (source.options(source.selectedIndex).value=="LCM") { tiao.options.length = 0; var oOption = document.createElement('OPTION'); oOption.text = "图形型"; oOption.value = "图形型"; tiao.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "字符型"; oOption.value = "字符型"; tiao.options.add(oOption); var oOption = document.createElement('OPTION'); oOption.text = "段码型"; oOption.value = "段码型"; tiao.options.add(oOption); } if (source.options(source.selectedIndex).value=="LCD") { tiao.options.length = 0; for (k=1; k<onecount;k++) bigclass ="&subcat[k]&"; var oOption = document.createElement('OPTION'); oOption.text = bigclass; oOption.value = bigclass; tiao.options.add(oOption); } }
//--> </script>