2012年11月2日 星期五

[文章標題]在近N天的標題後加一個new的icon

function new_image($s_time){
  $tc=(date('U',time())-date("U",strtotime($s_time)))/86400;
  $tc_image_new='';
 if($tc<=3)
  $tc_image_new="";
      
  return $tc_image_new;
}

PS. 一天86400秒

icon finder: http://www.iconfinder.com/

您可能有興趣的書單:

沒有留言: