感谢孤独冷雨老师的指点,请再帮我一下吧,多谢!!
.....................................sql = "select top 10 * from news where trim(pic)<>'' order by id desc".........在这里可以修改图片数量,有效,图片显示正常。
.........................................
<%
t=0
do while not rs.EOF and t<6............在这里可以修改“t"值,但最多不能超过8,超过8之后,数字一闪就没有了,显示的数字最多是1-6,怎样修改才能显示更多的数字呢?这样便于浏览,请老师再帮学生一次,好吗?谢谢!图片添加完全可以通过后台完成,挺不错的,就差这一点啦。。。。呵呵,老师,您再帮我一下吧!
response.Write "pic_arr["&t&"] ="&chr(34)&"./"& rs("pic") &""&chr(34)&" ; "
response.Write chr(10)
response.Write "link_arr["&t&"] ="&chr(34)& rs("url")&""&chr(34)&" ; "
response.Write chr(10)&chr(13)
LenTitle=rs("title")
if len(LenTitle)>15 then LenTitle=left(LenTitle,15)&" …"
response.Write "text_arr["&t&"] ="&chr(34)&""& LenTitle &""&chr(34)&" ; "
response.Write chr(10)
rs.movenext
t=t+1
loop
%>
.......................................................