Rather than forcing users to edit the following to add content files
ITEMS = [
It would be nice to have a loop which would load the ITEMS array dynamically. They would then only have to change some sort of lop counter. Is this possible to do?
Solution for Tigra Scroller download package demo:
How do you implement this dynamic capability? I have never done script coding before so forgive me.
if you place above code in your scroll.tpl?.js file instead of ITEMS variable definition the scroller will be configured to scroll MY_ITEM_NUMBER of
external files named ../s0_data/cont0.html to ../s0_data/cont[MY_ITEM_NUMBER-1].html where [MY_ITEM_NUMBER-1] is actual number. All you need is:
1. place the code in the scroller's config
2. set the number of files you want to scroll
3. fill in directory ../s0_data/ directory with the HTML files sticking to the naming convention