- 爱易网页
-
ASP教程
- 为什么按了显示后,<%=rs("xz_name")%>总会显示在最后,而且是显示同一内容解决方案
日期:2014-05-17 浏览次数:21232 次
为什么按了显示后,<%=rs("xz_name")%>总会显示在最后,而且是显示同一内容
<%dim s
set rs=server.CreateObject( "adodb.recordset ")
rs.open( "select * from member_xz "),conn,1,3
do while not rs.eof
s=s+1
%>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function disply()
{
if (shows <%=s%> .style.display == "none ")
{
shows <%=s%> .style.display = "block "; //显示
}
else
{
shows <%=s%> .style.display = "none ";
}
}
//-->
</SCRIPT>
<table width= "794 " border= "0 " align= "center " cellpadding= "0 " cellspacing= "2 ">
<tr>
<td width= "100 " height= "100 "> <img src= "img/no_picture.gif " width= "100 " height= "100 " /> </td>
<td width= "606 " valign= "top "> <%=rs( "xz_name ")%> <br /> </td>
<td width= "88 " bgcolor= "#F7F7F7 "> <div align= "center "> 删除 <br />
<br />
<a onclick= "disply() "> 详细 </a> </div> </td>
</tr>
<tr>
<td height= "1 " colspan= "3 " background= "img/line_xu.gif "> <img src= "img/line_xu.gif " width= "4 " height= "1 " /> </td>
</tr>
<tr>
<td colspan= "3 " style= "display:none " id= "shows <%=s%> ">
<%=rs( "xz_name ")%>