<%'用与首页调用%> <%on error resume next%> <%sql = "select top 5 uid,title,lasttime,id,close from bbs where rootid=0 order by lasttime desc" set rs=conn.execute(sql) do while not rs.eof%> document.write('
<%if rs("close")=0 then%><%else%><%end if%>" title="<%=rs("title")%>"><%if len(rs("title"))>26 then%><%=left(rs("title"),26)%>...<%else%><%=rs("title")%><%end if%>"><%=rs("uid")%><%=year(rs("lasttime"))%>-<%=month(rs("lasttime"))%>-<%=day(rs("lasttime"))%>
'); <% rs.movenext loop rs.close set rs=nothing %>