ASP中新闻标题显示"NEW"提示asp
如下代码:
==================================================
<%
If FormatDateTime(now(),2) = FormatDateTime(rs("time") ,2) Then
response.write "NEW"
else
End if
%>
===============...
如下代码:
==================================================
<%
If FormatDateTime(now(),2) = FormatDateTime(rs("time") ,2) Then
response.write "NEW"
else
End if
%>
=================================================
注:rs("time")-----------------数据库中新闻时间的字段
response.write "NEW" ------可以输出提示也可以显示图片
==================================================
<%
If FormatDateTime(now(),2) = FormatDateTime(rs("time") ,2) Then
response.write "NEW"
else
End if
%>
=================================================
注:rs("time")-----------------数据库中新闻时间的字段
response.write "NEW" ------可以输出提示也可以显示图片
上一篇:ASP中JMAIL发送邮件
下一篇:ASP静态页面点击率问题
我要评论