请教:像新浪上的那样的新闻列表,用ASP,程序应该怎么写呀!
请教:像新浪上的那样的新闻列表,用ASP程序应该怎么写,望有人能教教我.
[[it] 本帖最后由 hanbao 于 2008-3-13 17:01 编辑 [/it]]
2008-03-13 15:31
2008-03-13 15:33
2008-03-13 16:45
2008-03-13 16:56
2008-03-13 16:56
2008-03-13 16:59
2008-03-13 17:05
2008-03-13 17:15

2008-03-13 17:19
程序代码:<%
dim a,n,m,l
'm为每行显示字数
m=13
l=0
a="王志文下月结婚|新娘很年轻|韩三平探班红楼梦培训基地|活着真好|前清历史|金婚|央视否认封杀艳照门明星|阿Sa称Twins有散伙危险 |江山|美人|江山1|江山2|解放军积极应对印度增兵边境"
a=split(a,"|")
for j=0 to ubound(a)
response.write "<a href='#'>"&a(j)&"</a> "
if len(a(j))>(m+1)\2 then
response.write"<br>"
else
l=l+len(a(j))+1
end if
if j=ubound(a) then
n=j
else
n=j+1
end if
if (l=>(m+1) or l+len(a(n))=>(m+1)) and len(a(j))<=(m+1)\2 then
response.write"<br>"
l=0
end if
next
%>

2008-03-13 18:28