asp 图片排列问题

来源:百度知道 编辑:UC知道 时间:2024/05/02 09:26:02
asp 图片排列问题 代码如下 我要排成三行五列 求助 谢谢```在线等~~~
<% set rs=server.CreateObject("adodb.recordset")
sql="select * from wmf order by ID desc"
rs.open sql,conn,1,1

if rs.eof and rs.bof then
response.Write("还没有信息")
else
rs.pagesize=15
mor
totalPut=rs.recordcount '记录总数
totalPage=rs.pagecount
MaxPerPage=rs.pagesize
if currentpage<1 then
currentpage=1
end if
if currentpage>totalPage then
currentpage=totalPage
end if
if currentPage=1 then
showpages
showContent
showpages1
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark '移动到开始显示的记录位置

你看一下,这样是不是可以实现你要的效果

<% set rs=server.CreateObject("adodb.recordset")
sql="select * from wmf order by ID desc"
rs.open sql,conn,1,1

if rs.eof and rs.bof then
response.Write("还没有信息")
else
rs.pagesize=15
mor
totalPut=rs.recordcount '记录总数
totalPage=rs.pagecount
MaxPerPage=rs.pagesize
if currentpage<1 then
currentpage=1
end if
if currentpage>totalPage then
currentpage=totalPage
end if
if currentPage=1 then
showpages
showContent
showpages1
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark '移动到开始显示的记录位置
showpages
showContent
showpages1
else

end if
end if
i=1 %>
<TR>
<%
do while not rs.eof
kfname=rs("fname")
%> <