smarty模板中,js中如何嵌套foreach或section循环

WBOY
Release: 2016-06-13 11:33:00
Original
847 people have browsed it

smarty模板中,js中怎么嵌套foreach或section循环?
这是静态页。

<br>          <script><br />                                     var box =new PPTBox();<br />                                     box.width = 1250; //宽度<br />                                     box.height = 490;//高度<br />                                     box.autoplayer = 3;//自动播放间隔时间<br />                                     //box.add({"url":"图片地址","title":"悬浮标题","href":"链接地址"})<br />                                     box.add({"url":"images/tu1.jpg","title":"悬浮提示标题1"});<br />                                     box.add({"url":"images/tu2.jpg","title":"悬浮提示标题2"});<br />                                     box.add({"url":"images/tu3.jpg","title":"悬浮提示标题3"});<br />                                     box.add({"url":"images/tu4.jpg","title":"悬浮提示标题4"});<br />                                     box.show();<br />                                </script><div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!