A question about calling Smarty in JS

Source: Internet
Author: User
The problem of calling Smarty in JS
In a template page (HTML) in the JS need to call the list, the array to assign values, but the following code seems not good, ask.

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}
Editable content End
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 and ask how to modify it. Thank you.

------Solution--------------------
http://my.oschina.net/u/200745/blog/35727
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.