24小时发布时间为红色帝国CMS方法
我的站长站
2013-04-10
共人阅读
本文讲解帝国 CMS 通过标签判断发布时间,将 24 小时内的内容标题设置为红色样式的实现方法,含灵动标签、列表标签两种常用写法,简单易上手。
24小时发布时间为红色语法:
<span> <? $newstime=date('m-d',$bqr[newstime]); if(time()-$bqr[newstime]<=
1
*24*3600){$newstime="<font color=
red
>$newstime</font>";}?><?=$newstime?></span>