<mce:script language="javascript"><!-- var old=''; function menu(name) { submenu=eval("submenu_"+name+".style"); if(old!=submenu) { if(old!='') { old.display='none'; } submenu.display='block'; old=submenu; } else { submenu.display='none'; old=''; } } // --></mce:script> <table width="230" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="33" background="../images/bg_submenu.gif" class="title_white"> 产品分类</td> </tr> <% set rs=conn.execute("select id,title from class where followid=0 order by ordnum desc") i=1 while not rs.eof%> <tr> <td class="submenu"><a onClick="menu(<%=i%>);" style="CURSOR:hand">· <%=rs(1)%></a></td> </tr> <tr id="submenu_<%=i%>" style="DISPLAY: none;"> <td class="submenu1" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <tr> <td class="submenu1" style="text-indent:35px;" mce_style="text-indent:35px;"> <a href="pro_01.asp?id=<%=rs(0)%>" target="_parent">→ <%=rs(1)%></a> </td> </tr> <%set rs1=conn.execute("select id,title,otherid from class where followid="&rs(0)&" order by ordnum desc") while not rs1.eof%> <tr> <td class="submenu1" style="text-indent:35px;" mce_style="text-indent:35px;"> <%if rs1(2)=1 then%> <a href="pro_01_01.asp?id=<%=rs1(0)%>" target="_parent">→ <%=rs1(1)%></a> <%else%> <a href="pro.asp?id=<%=rs1(0)%>" target="_parent">→ <%=rs1(1)%></a> <%end if%> </td> </tr> </td> </tr> <%rs1.movenext wend%> </table></td> </tr> <% i=i+1 rs.movenext wend%> </table>