这个ASP代码怎么改急急在线等

来源:百度知道 编辑:UC知道 时间:2024/05/22 03:57:51
下面这段代码是前台的显示方式!我想把它改成2行!请问怎么改谢谢
<%
set rs=server.createobject("adodb.recordset")
sql="select top 4 * from product where tuijian<>0 and picture<>'' and show<>0 order by orderid"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
%>
<td width="400" height="100" class="heijiu">暂无热门产品</td>
<%
else
for i=1to 4
if not rs.eof then
%>
<td height="100" width="140" align="center"><a href="chanpin/product_show.asp?nid=<%=rs("pid")%>" target="_blank" > <img src="admin/<%=rs("picture")%>" width="140" height="100" border="0"

<%
set rs=server.createobject("adodb.recordset")
sql="select top 4 * from product where tuijian<>0 and picture<>'' and show<>0 order by orderid"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
%>
<td width="400" height="100" class="heijiu">暂无热门产品</td>
<%
else
for z=1 to 2
%>
<tr>
<%
for i=1 to 2
if not rs.eof then
%>
<td height="100" width="140" align="center"><a href="chanpin/product_show.asp?nid=<%=rs("pid")%>" target="_blank" > <img src="admin/<%=rs("picture")%>" width="140" height="100" border="0" /></a> </td>
<%
rs.movenext
else
%>
<td height="100" width="100"> <