<?php
$img = '<p><img src="/skin/images/'.mt_rand(1,1).'.png" alt="'.$navinfor['title'].'"></p>';
$pos = strpos($navinfor['newstext'], "</p>");
if ($pos === false) {
echo $navinfor['newstext'];
}
echo substr_replace($navinfor['newstext'], "</p>{$img}", $pos, strlen("</p>"));
?>內容頁裏,文章標籤替換成上面的代碼
然後再/skin/images/下面放入有序號的png格式圖片,比如:1.png,2.png
最後,根據你圖片的需要修改代碼裏面的mt_rand(最小的圖片序號,最大的突破序號)