www.gusucode.com > HadSky PHP轻论坛系统源码 v2.4.2源码程序 > ytqlt_v2.4.2.0701/template/slides/install.js
var $div_main = document.getElementById("div_main"); var $htmlcode = '',$__html; for ($i = 0; $i < $slide_length; $i++) { $__html = $template.replace(/Src/g, $slide['src' + $i]); $__html = $__html.replace(/Href/g, $slide['href' + $i]); $__html = $__html.replace(/Title/g, $slide['title' + $i]); $htmlcode += $__html; } $div_main.innerHTML = $htmlcode;