急,一个asp的问题-点击收藏/显示table
<td height= "22 " onClick= "javascript:if(jueban.style.display== 'none '){jueban.style.display= 'block '}else{jueban.style.display= 'none '}; ">
<%if len(trim(rsg( "anclass ")))> 12 then
response.write left(trim(rsg( "anclass ")),12)& " "
else
response.write trim(rsg( "anclass "))
end if%>
</td>
<table width= "67% " id= "jueban " style= "display:none ">
<%
set rs_news=server.createobject( "adodb.recordset ")
sqltext4= "select * from shop_nclass where anclassid= "&rsg( "anclassid ")& " and xs=2 order by nclassidorder asc "
rs_news.open sqltext4,conn,1,1
%>
<tr>
<%i=0
do while not rs_news.eof%>
<td width= "22 "> <img src=img/tb2.gif> </td>
<td> <div align= "left ">
<a href= "class.asp?lx=small&anid=1&nid= <%=rs_news( "nclassid ")%> " target= "_blank " style= "text-decoration: none ">
<%=cutstr(rs_news( "nclass "),22)%> </a> <font size= "2 ">
</font>
</div> </td>
</tr>
<%rs_news.movenext
i=i+1
if i=3 then exit do
loop
rs_news.close %>