代码如下:
<!--#include file="conn.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/normal.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color: #666666;
text-decoration: none;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<% dim num
num=1
set rs=server.CreateObject("adodb.recordset")
rs.open "select Top 4 * from Product_Detail order by productID desc ",conn,1,4
do while not rs.eof
%>
<td width="25%" height="160" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="16" align="center"> </td>
</tr>
<tr>
<td align="center"><table width="123" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="82" background="images/c03.jpg"><table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%" align="center"><a href="Product/Product_Browse.aspx?Type=Product_Hot&id=<%=rs("productID")%>" target="_blank"><img src="admin/Product_B/Upload/<%= rs("ProductPic1") %>" width="104" height="74" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%" height="38"> </td>
<td width="87%"><font color="#666666"><a href="Product/Product_Browse.aspx?Type=Product_Hot&id=<%=rs("productID")%>" target="_blank" class="style1"><%= rs("ProductName") %></a></font></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<% if num<> 6 then %>
<td width="1%"><img src="images/c02.jpg" width="1" height="160"></td>
<%
end if
num=num+1
rs.movenext
loop
%>
</tr>
</table>
我希望在显示两行 应该如何修改代码呢? 请方家赐教,不胜感激