发表于:2011-05-17 00:00:00来源:SOUAB.COM人气:3335
<% dim m,n
n = (Rs("newsdate").Value)
m = datediff("d", n, date() )
if m<=7 then %><img src="images/new.gif" width="27" height="9" />
<% end If%>
<% if datediff("d",rs("newsdate"),date())<=7 then%><img src="images/new.gif" width="27" height="9">
<%end if%>
经测试有效
顺便提供一套new图标.请使用右键另存为下载.谢谢