發表于:2011-05-17 00:00:00來源:SOUAB.COM人氣:3287
<% 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%>
經測試有效
順便提供一(yī)套new圖标.請使用右鍵另存爲下(xià)載.謝謝