求图片显示增加翻页代码,求教wangjy500版主。谢谢!
<body><!--#include file="head.asp" -->
<table width="990" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="180" height="100" align="center" bgcolor="#5E0000"><!--#include file="leftmenu.asp" --></td>
<td align="center"><br>
<br>
<table width="93%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="line">
<tr>
<td valign="bottom"> <b><%=unescape(request.QueryString("classname"))%></b></td>
</tr>
</table>
<br>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainFont">
<tr>
<td valign="top">
<%
dim classid
classid=request.QueryString("classid")
mysql="select * from PSClass_table where OneClassID=" & classid & " order by OrderNumber asc,ClassName asc"
set rs=conn.execute(mysql)
%>
</td>
</tr>
<%if rs.eof then%>
<tr>
<td height="210" align="center" valign="top" class="pointCss">作品更新中...</td>
</tr>
<%else%>
<%do while not(rs.eof)%>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainFont">
<tr align="center">
<%for i=0 to 2%>
<%if not(rs.eof) then%>
<td width="33%" valign="top"><br>
<a href="productionc.asp?cNum=2&classid=<%=trim(rs("id"))%>&classname=<%=escape(trim(rs("ClassName")))%>&gototop=0"><img src="classimages/smallimages/<%=trim(rs("ClassImages"))%>" alt="<%=trim(rs("ClassName"))%>" onload="DrawImage(this,160,170)" border="0"></a>
<br>
<%=trim(rs("ClassName"))%>
<br>
<br>
</td>
<%
rs.movenext
else
%>
<td width="33%"> </td>
<%
end if
next
%>
</tr>
</table>
</td>
</tr>
<%
loop
end if
set rs=nothing
conn.close
set conn=nothing
%>
<tr>
<td height="40" align="center" valign="bottom" class="line"><a href="javascript:history.go(-1)">【返回】</a><br><br></td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
</td>
<td width="40" align="center" valign="top"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="foot.asp" -->
</body>
现在是有多少图片都在一个页面显示,修改成3行图片,每行3个。
先谢了。