下面的是竖向重复的代码,我想改成横向重复,但没实现。有人帮帮我吗?<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$i=0;
?>
<style type=text/css>
<!--#link li {
LIST-STYLE-TYPE: none
}
#link li a img {
FILTER: Alpha(Opacity=70); WIDTH: auto;
}
#link li a:hover img {
FILTER: Alpha(Opacity=100);
}
-->
</style>
<div style="margin-top:-15px;" id="link"><ul>
<?php
for ($i=1; $i <=12; $i++) {
$txtstr=trim($params->get("txt_$i"));
if ($txtstr=="")
break;
$tmpstr="<li><a href=\"".trim($params->get("url_$i")) . "\" target=_blank><img src=\"modules/logolinks/";
$imgstr=trim($params->get("pho_$i","noimage.png"));
$tmpstr=$tmpstr.$imgstr."\" border=0 width=" . $scrollerwidth . " height=" . $scrollerheight . " alt=" . trim($params->get("txt_$i")) . "></a></li>\n";
?>
<?php echo $tmpstr; ?>
<?php
}
?>
</ul></div>