在js中调用Smarty的问题
在一个模板页(html)中的js里需要调用列表,对数组进行赋值,但下面的代码貌似不行,请教。
var imag=new Array();
var link=new Array();
var text=new Array();
{section name=list loop=$ppt setp=1 start=1}
imag[$smarty.section.loop.index]={$ppt[list].imgurl};
link[$smarty.section.loop.index]={$ppt[list].linkurl};
text[$smarty.section.loop.index]={$ppt[list].title};
{/section}
//可编辑内容结束
var swf_height=show_text==1?pic_height+20:pic_height;
=======================
需要对imag/link/text数组进行赋值,实现幻灯片效果,请教要怎么修改。谢谢。
------解决方案--------------------
http://my.oschina.net/u/200745/blog/35727
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号