<?php
$iunum=4;
$iutw="100%";
$iubw=150;
$iubh=80;
$iu="iu.dx";
$iupics="/m/images/";
$fp = fopen($iu, "r");
$iu_in = fread($fp, filesize($iu));
fclose($fp);
$iuline = explode("\n", $iu_in);
$is=sizeof($iuline);
$i=$is-1-$iunum;
srand((double)microtime()*1000000);
$spoint=rand(0,$i);
$rpoint=rand(1,$iunum);
echo "<table width=$iutw border=0><tr>";
for ($e=0;$e<$iunum;$e++) {
if (($spoint+$rpoint+$e)>=($spoint+$iunum)) {$rcorr=$iunum;} else {$rcorr=0;}
$iudata = explode("|", $iuline[$spoint+$rpoint+$e-$rcorr]);
echo "<td align=center><a href=$iudata[2] target=_top><img src=$iupics$iudata[0] width=$iubw height=$iubh alt=\"$iudata[1]\" border=0></a><br></td>";
}
echo "</tr></table>";
?>
|