求高手帮忙修改一下代码,关于下来菜单的问题
我想做一个ASP下拉菜单,当鼠标经过一级分类是,就会出现相应的二级分类,但是我发现这段代码的二级分类只能出现一个,并不能全部出现,还有点击二级分类的链接出现的是非法访问,请高手帮忙修改一下!本人QQ:563612844,求高手帮助!下面帖代码: 程序代码:
<script language="JavaScript" type="text/JavaScript"> function Show(ID) { //创建个激活函数 document.getElementById(ID).style.display = ""; } function ShowC(ID) { //创建个关闭函数 document.getElementById(ID).style.display = "none"; } </script> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#3399CC" align="center" height="27"><strong><font color="#FFFFFF" size="2">产品系列</font></strong></td> </tr> <tr> <td> <% set rs=server.CreateObject("adodb.recordset") rs.open "select anclassid,tupian from bsort order by anclassidorder",conn,1,1 do while not rs.eof %> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <TD > <a href="class.asp?lx=big&anid=<%=rs("anclassid")%>" onMouseOver="Show(<%=rs("anclassid")%>)" onMouseOut="ShowC(<%=rs("anclassid")%>)"><img src="<%=trim(rs("tupian"))%>" width=180 height="80" border=0 ></a> <div id="Layer1" style="position:static; border: 1px none #000000; border-bottom-color: #CCFF00;"> <% set rs2=server.CreateObject("adodb.recordset") rs2.open "select nclass,nclassid from ssort where anclassid="&rs("anclassid")&" order by nclassidorder",conn,1,1 do while not rs2.eof %> <A href=class.asp?lx=small&anid="&rs("anclassid")&"&nid="&rs2("nclassid")&" id="<%=rs("anclassid")%>" style="DISPLAY: none" onMouseOver="Show(<%=rs("anclassid")%>)"><%=rs2("nclass")%></A> <% rs2.movenext loop rs2.close set rs2=nothing response.write "" %></div></td> </tr> </table> <% rs.movenext loop rs.close set rs=nothing%></td> </tr> </table>