您的位置:首页 > 编程语言 > ASP

asp代码 最新新闻显示new图片

2008-04-17 08:58 316 查看
asp代码 最新新闻显示new图片

DateDiff(interval, date1, date2[, firstdayofweek][, firstweekofyear]])

<%if DateDiff("d",rs("date"),date())<2 then%><font color="#4FC5D9">NEW</font><%end if%>

七天之内显示new图片

<%if Date()-rs("news_date")<7 then %> <img border="0" src="imges/new.gif" >
<%end if%>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: