

技术支持
[!--titlepic--]
$r[titlepic]tips:使用$r变量需开启“使用程序代码”,如:
$listtemp='标题图片:'.$r[titlepic].'';
if(empty($r[titlepic])){$r[titlepic]='/img/rand/'.rand(1,10).'.jpg';}
$_nowclass=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$r[classid]'");
$listtemp='
<a href="[!--titleurl--]"><img src="[!--titlepic--]" alt="[!--title--] 图片" title="[!--title--] 图片"></a>
';tips:在/img/rand/目录下,放1.jpg,2.jpg,3.jpg……10.jpg.即可实现内容无图片时,调用随机图片功能。