时间:2021-07-01 10:21:17 帮助过:28人阅读
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24 * 3;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
2)红色的new
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<font color='red'>(new)</font>";
else @me = $aa;
[/field:pubdate]
3)加new.jif小图片
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa;
else @me = $aa;
[/field:pubdate]
http://www.bkjia.com/PHPjc/477231.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477231.htmlTechArticle1)红色日期 br[field:pubdate runphp=yes] br$a=lt;font color=redgt;.strftime(%m-%d,@me).lt;/fontgt;; br$b=strftime(%m-%d,@me); br$ntime = time(); br$day3 = 3600 * 24 * 3; brif(($...