少数民族聚居区 地方:当前是竖着排的,我想横着排改哪里!
来源:百度文库 编辑:查人人中国名人网 时间:2024/08/29 05:02:07
<%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
%>
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
%>