帝国cms默认图片集分割大图和小图方法案列如下,自行对照修改
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> </head> <body> <?php $morepic=$navinfor['morepic']; $mpr=explode(egetzy('rn'),$morepic); $mpcount=count($mpr); for($mpi=0;$mpi<$mpcount;$mpi++) { $mp=explode('::::::',$mpr[$mpi]); if(empty($mp[1])) { $mp[1]=$mp[0]; } // echo "小图地址:<img src='".$mp[0]."' /><br />大图地址:<img src='".$mp[1]."' /><br />"; $picname=htmlspecialchars($mp[2]); $showsmphoto.="<li><a href='#' title='".$picname."' ><img src='".$mp[0]."' /></a></li>"; //显示小图格式修改这里 $showbigphoto.="<img src='".$mp[1]."' alt='".$picname."' /> "; //显示大图格式修改这里 } ?> 输出大图: <?=$showbigphoto?> 输出小图:<ul> <?=$showsmphoto?> </ul> </body> </html>