<div class="mod18">
<?php
$str=stripcslashes($navinfor['newstext']);
preg_match_all('/<img.*?src="(.*?)".*?>/is',$str,$imgArr);
$imgArr = array_unique($imgArr[1]);
?>
<span id="prevTop" class="btn prev"></span>
<span id="nextTop" class="btn next"></span>
<div id="picBox" class="picBox">
<ul class="cf">
<?php
$imgid = 0;
foreach($imgArr as $vause){
$imgid ++;
?>
<li><img src="<?=$vause?>" /></li>
<?php
};
?>
</ul>
</div>
<span id="prev" class="btn prev"></span>
<div id="listBox" class="listBox">
<ul class="cf">
<?php
$imgids = 0;
foreach($imgArr as $vauses){
$imgids ++;
if($imgids==1){
$class = 'class="on"';
}else{
$class = '';
}
?>
<li <?=$class?>><img src="<?=$vauses?>" /></li>
<?php
};
?>
</ul>
</div>
<span id="next" class="btn next"></span>
<div class="clear"></div>
</div>