ASP第行显示4张图片,共显示20张,向上要滚动

[复制链接]
查看11 | 回复2 | 2010-2-7 18:50:46 | 显示全部楼层 |阅读模式
在你需要显示的那行写个跑马灯循环就可以了
回复

使用道具 举报

千问 | 2010-2-7 18:50:46 | 显示全部楼层
sql="select Top 20 * from products where bestbook=1 order by bookid desc"
回复

使用道具 举报

千问 | 2010-2-7 18:50:46 | 显示全部楼层


[img][/img]
欢迎访问
您现在的位置:活动照片



"
else
dim page
page=Clng(request("page"))
rs.pagesize=20
if pagers.pagecount then page=rs.pagecount
rs.Absolutepage=page
%>


[url=]">
[img][/img]
" height="180" width="120"border="0">[/url]
[/td]
0 thenfor j=1 to 4-cint(i-1 mod 4)
response.write "[td] [/td]"nextresponse.write "[/tr]" end if
%>

共找到" & "
[color=]" & Cstr(rs.RecordCount) & "
" & "张照片"if page1 thenresponse.write "[url=]首页[/url] "response.write "[url=]上一页[/url] "end ifif pagers.pagecount thenresponse.write "[url=]下一页[/url] "response.write "[url=]尾页[/url] "end if%>第页/共页">[I]


回答补充,你直接把我这段代码贴上去就行了,具体讲来,就是使用FOR语句来控制每行显示数量,用分页代码控制每页的显示数量,并把不能填满一页的图片位置用空格补上,以防不能正确显示表格
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行