<% set rs=Server.CreateObject("ADODB.Recordset") sql="select top 3 id, title, addtime from news order by id desc" rs.open sql,conn,1,1 if not (rs.eof and rs.bof) then do while not rs.eof title=rs("title") if len(title)>13 then title=left(title, 13)&"..." end if %> <% rs.movenext loop end if %>
" target="_blank"><%=title%> <%=year(rs("addtime"))%>/<%=month(rs("addtime"))%>/<%=day(rs("addtime"))%>