-
灶具電器設備類網站織夢...
-
園林綠化景觀建設類網站...
-
APP應用程序官網類網站織...
-
車輛機油工業潤滑油類網...
-
攝影拍攝短視頻類網站織...
-
辦公學習教程資訊類網站...
-
潮流資訊信息類網站織夢...
-
LED顯示屏中英雙外貿類網...
-
園林景觀設計類網站織夢...
-
水上樂園設備類網站織夢...
-
水性工業漆類企業網站織...
-
網站建設營銷類網站織夢...
-
企業公司行業通用類網站...
-
汽車配件類網站織夢模板...
-
農業機械設備類網站織夢...
-
新媒體自媒體運營資訊類...
-
中藥藥材百科資訊類網站...
-
環保電動掃地車類網站織...
-
道路護欄交通設施類網站...
-
環保設備研發制造類網站...
打開include/extend.func.php文件
在最下面加入代碼
<span style="font-size:14px;">//取案例第一張地址function GetFirstImg($arcid){global $dsql;$query= "SELECT anlsm FROM `dede_addon17` where aid='$arcid'";$row = $dsql->GetOne($query);$preg = "/<img.*?src=[\'\"](.+?)[\'\"].*?>/i";preg_match_all($preg, $row['anlsm'], $match);//print_r($match);return $match[1][0];}</span>
再打開/include/taglib/arclist.lib.php文件
找到
<span style="font-size:14px;"> $row['fulltitle'] = $row['title'];</span>
在它下面加入
<span style="font-size:14px;">$row['firstimgurl'] = GetFirstImg($row['id']);
</span>
調用標簽
<span style="font-size:14px;"><img src="[field:firstimgurl /]" /></span>
調用自定義字段中的第二張、第三章圖片方法
打開include/extend.func.php文件
在最下面加入代碼
<span style="font-size:14px;">//取案例第一張地址function GetFirstImg($arcid){global $dsql;$query= "SELECT anlsm FROM `dede_addon17` where aid='$arcid'";$row = $dsql->GetOne($query);$preg = "/<img.*?src=[\'\"](.+?)[\'\"].*?>/i";preg_match_all($preg, $row['anlsm'], $match);//print_r($match);return $match[1][0];}</span><span style="font-size:14px;">//取案例第三張地址function GetThirImg($arcid){global $dsql;$query= "SELECT anlsm FROM `dede_addon17` where aid='$arcid'";$row = $dsql->GetOne($query);$preg = "/<img.*?src=[\'\"](.+?)[\'\"].*?>/i";preg_match_all($preg, $row['anlsm'], $match);//print_r($match);return $match[1][2];}</span>
再打開/include/taglib/arclist.lib.php文件
找到
<span style="font-size:14px;"> $row['fulltitle'] = $row['title'];</span>
在它下面加入
<span style="font-size:14px;">$row['secondimgurl'] = GetSecImg($row['id']);$row['thirdimgurl'] = GetThirImg($row['id']);</span>
調用標簽
<img src="[field:secondimgurl/]"/>//第二張圖片的調用<img src="[field:thirdimgurl/]"/>//第三張圖片的調用




