黑石收购洽兴:当前是竖着排的,我想横着排改哪里!

来源:百度文库 编辑:高考问答 时间:2024/04/29 12:00:43
<%set rst=server.createobject("adodb.recordset")
dim y
y=1
sql="select articleid,bestpic,title from learning where best=true order by articleid desc"
rst.open sql,conn,1,1
do while not rs.eof
y=y+1
%> <TR> <TD WIDTH="100%"> <P ALIGN="center"> <A HREF="photo.asp?id=<%=rst("articleid")%>" TARGET="_blank">
<IMG HEIGHT="149" SRC="bestpics.asp?id=<%=rst("articleid")%>" WIDTH="111" BORDER="0"></A></TD></TR>
<TR> <TD WIDTH="100%"> <P ALIGN="center"><%
if y>8 then exit do
rst.movenext loop
rst.close
set rst=nothing
%>

<tr><td>这样是竖着排的</td></tr>
<tr><td>这样是竖着排的</td></tr>
<tr><td>这样是竖着排的</td></tr>
<tr><td>这样是竖着排的</td></tr>
<tr><td>这样是竖着排的</td></tr>

<tr>
<td>这样是横着排的</td>
<td>这样是横着排的</td>
<td>这样是横着排的</td>
<td>这样是横着排的</td>
<td>这样是横着排的</td>
</tr>

改这里

<TR> <TD WIDTH="100%"> <P ALIGN="center"> <A HREF="photo.asp?id=<%=rst("articleid")%>" TARGET="_blank">
<IMG HEIGHT="149" SRC="bestpics.asp?id=<%=rst("articleid")%>" WIDTH="111" BORDER="0"></A></TD></TR>
<TR> <TD WIDTH="100%"> <P ALIGN="center"><%
if y>8 then exit do
rst.movenext loop
rst.close
set rst=nothing
%>