帝国CMS教程
2021-08-20
图片集调用代码:<?php$picr=explode(egetzy('rn'),$navinfor[morepic]);for($p=0;$p<count($picr);$p++){$spicr=explode("::::::",$picr[$p]);?>小图地址:<img src="
图片集调用代码:
<?php$picr=explode(egetzy('rn'),$navinfor[morepic]);for($p=0;$p<count($picr);$p++){$spicr=explode("::::::",$picr[$p]);?>小图地址:<img src="<?=$spicr[0]?>" />大图地址:<img src="<?=$spicr[1]?>" />图片名称:<?=$spicr[2]?><?php}?>
输出的代码:
<img src="https://im.25qi.com/d/file/sell/2014-07-02/154f3b8dd3c1d6d569d886ad0c6f2800.jpg" /><img src="https://im.25qi.com/d/file/sell/2014-07-02/5472a488663bf1af5802948b626dac46.jpg" /><img src="https://im.25qi.com/d/file/sell/2014-07-02/b61ea31ea9f1de3330a79d442b8b59b1.jpg" /><img src="https://im.25qi.com/d/file/sell/2014-07-02/b29de812f7e01cb75fa0dfefa1bd3502.jpg" />
调用图集中第一张图片:
<?php$str=$navinfor[morepic];$exp=explode("::::::",$str);?><img src="<?=$a=$exp[1];?>" alt="第一张" /><?php?>
显示全部内容...