帝国CMS教程图集字段的大图,小图,说明的调用

  • A+
所属分类:帝国cms技巧

内容摘要

<b>morepic参数:</b><br />
<?php
$arr = array();
$arr = $navinfor['morepic'];
$newarr = explode(egetzy('rn'),$arr);
$count = count(explode(egetzy(

文章正文

<b>morepic参数:</b><br /><?php$arr = array();$arr = $navinfor['morepic'];$newarr = explode(egetzy('rn'),$arr);$count = count(explode(egetzy('rn'),$navinfor[morepic]));//图集的图片数量for($i=0;$i<$count;$i++){$s_arr = array();$s_arr[] = $newarr[$i];$str = $s_arr[0];

$bot_arr = explode("::::::", $str);

$spic = $bot_arr[0];//小图$bpic = $bot_arr[1];//大图$picinfo = $bot_arr[2];//图片说明

echo '<img src="'.$spic.'" data-large="'.$bpic.'" alt="'.$picinfo.'" width="65" height="65" />';}?>

代码注释

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: