怎样将下面的循环成五列
现在循环出来的重复,还是行,很乱,没有积分了,请高手指点sub ArticleContent(intTitleLen)
dim i,strTemp
i=1
strTemp=""
strTemp= strTemp & "<table width=100% border=0 cellspacing=0 cellpadding=0>"
strTemp= strTemp & "<tr>"
do while not rsArticle.eof
strTemp= strTemp & "<td>"
strTemp= strTemp & "<a href=ProductShow.asp?ArticleID=" & rsArticle("articleid") & ">"
fileExt=lcase(getFileExtName(rsArticle("DefaultPicUrl")))
strTemp= strTemp & "</td></tr>"
strTemp= strTemp & "<tr><td><a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">" & rsArticle("Title") & "</a>"
strTemp= strTemp & "</td>"
if i mod 5= 0 then
strTemp= strTemp & "</tr>"
end if
rsArticle.movenext
i=i+1
strTemp= strTemp & "</table>"
response.write strTemp
if i>=15 then exit do
loop
end sub
[ 本帖最后由 dou521 于 2010-3-3 19:47 编辑 ]