如何利用ASP来实现以下代码的功能?请复制以下代码至文本文件后更名存盘为*.html <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> </head> <body> <table width="191" border="0" align="center" cellpadding="0" cellspacing="0"> <form name="productsearch1" method="get" action="" target="_blank" onsubmit="return dosubmitbs(this)"> <tr><td width="191"> <script language="JavaScript"> var SubMenuinfo = new Array( new Array( new Array("请先选择大类","") ), new Array( new Array("笔记本","2_4"), new Array("其它整机","2_6") ), new Array( new Array("数码相机","95_31"), new Array("数码摄像机","95_46") ) ); function fillSelectFromArray(selectCtrlt,ind) { var i, j; var prompt; var itemArray=new Array (); itemArray=SubMenuinfo[ind]; for (i = selectCtrlt.options.length; i >= 0; i--) { selectCtrlt.remove(0); } for(key in itemArray) { newOption=document.createElement("option"); newOption.value=itemArray[key][1]; newOption.text=itemArray[key][0]; selectCtrlt.add(newOption); val=itemArray[key][1]; } } </script> <select name="layer1id" onChange="fillSelectFromArray(productsearch1.layer2_id,this.selectedIndex)"> <option>全部大类</option> <option value="2">整机</option> <option value="95">数码</option> </select> <select name="layer2_id" style="width:90px"> <option>选择小类</option> </select></td> <input type="hidden" name="CategoryId" value=""> <input type='hidden' name='QPrice' value=""> </tr></form> </table>
</body> </html>