The question of calling Smarty in js is that you need to call the list in js on a template page (html) and assign values to the array, but the following code does not seem to work. VarimagnewArray (); varlinknewArray (); vartextnewArray (); {sectionnamelistloop $ pptsetp1start1} imag [$ smar calls Smarty in js
In js of a template page (html), you need to call the list and assign values to the array. However, the following code does not seem to work. For more information, see.
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}
// The editable content ends.
Var swf_height = show_text = 1? Pic_height + 20: pic_height;
======================================
You need to assign a value to the imag/link/text array to achieve the slide effect. ask how to modify it. Thank you.
------ Solution --------------------
Http://my.oschina.net/u/200745/blog/35727