我想做一个滚动新闻像这人http://news.163.com/上面的效果.可是现在在一行中只能显示一条记录,有多条记录是就分行了,下面是我的代码:
<%
db="data\data.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
conn.Open connstr
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "select top 1 * from NEWS order by ID desc",conn,3
%>
<% if rs.eof and rs.bof then %>
<marquee>没有信息</marquee>
<% rs.close %>
<% else %>
<% do while not rs.eof %>
<marquee> <a href=shownews.asp?ID=<%=rs("ID")%> target=_blank><%if len(rs("Title"))>16 then%><%=left(rs("Title"),16)%>...<%else%><%=rs("Title")%><%end if%> <%=rs("Date")%></a></marquee>
<%
rs.movenext
loop
rs.close
%>
<% end if %>