以下代码如何"实现最近一两天的新闻后面加一个"new"标识 "
以下代码如何"实现最近一两天的新闻后面加一个"new"标识 " 两天前的标题后面不用显示NEW图标www.masztb.com
<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 11 * from jishu where BigClassName='国家法规' order by id desc"
rs_news.open sqltext4,conn,1,1
%>
</span>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<%i=0
do while not rs_news.eof%>
<tr align="center" valign="middle">
<td width="5%"><span class="a"><img src="Img/class.gif" width="10" height="10" /></span> </td>
<td width="54%" height="20" style='BORDER-bottom: #999999 1px dotted'> <div align="left"><a href="showjishu.asp?id=<%=rs_news("id")%>" target="_blank" class="a">
<%=cutstr(rs_news("title"),10)%></a></div></td>
<td width="41%" style='BORDER-bottom: #999999 1px dotted'><font color="#999999" >
[<%=rs_news("AddDate")%>]</font>
<%if DateValue(rs_news("datetime"))=>DateValue(date()-2) then
Response.Write "<img src=""image/new1.gif"">"
%><%end if%>
</td>
</tr>
<%rs_news.movenext
i=i+1
loop
rs_news.close %>
</table>