帮我看一下asp如何实现图片按每行显示4张图片循环显示

来源:百度知道 编辑:UC知道 时间:2024/06/06 08:57:56
代码如下:
<table height="200" border="0" cellpadding="0" cellspacing="0" align="center" width="880">

<tr valign="top">
<%
str="select * from tblproduct where largeclassID="&trim(request("largeclassID"))
set rstp=server.CreateObject("adodb.recordset")
rstp.open str,conn,1,3
do while not rstp.EOF
%>

<td width="155" align="left">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="150">
<tr>
<td align="center"><a href="proshow.asp?id=<%=rstp("largeclassID")%>"><img src="<%=rstp("smallpicture")%>" width="140" height="170" border="0" /></a></td

<table height="200" border="0" cellpadding="0" cellspacing="0" align="center" width="880">

<tr valign="top">
<%
str="select * from tblproduct where largeclassID="&trim(request("largeclassID"))
set rstp=server.CreateObject("adodb.recordset")
rstp.open str,conn,1,3
do while not rstp.EOF
i = i + 1
%>

<td width="155" align="left">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="150">
<tr>
<td align="center"><a href="proshow.asp?id=<%=rstp("largeclassID")%>"><img src="<%=rstp("smallpicture")%>" width="140" height="170" border="0" /></a>