Questions about calling Smarty in js

Source: Internet
Author: User
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. Varimag = newArray (); varlink = newArray (); vartext = newArray's question of calling 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

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.