Shannon
Newbie
Posts: 1
Registered: 6/11/2004
Location: Cincinnati
Member Is Offline
|
| posted on 6/11/2004 at 01:55 AM |
|
|
Scrolling multiple content files
I downloaded the free version which scrolls content pages cont1.html and cont2.html within the s0_data directory. Which scripts do I need to edit if
I want to include additional content files like cont3.html, cont4.html, . . . etc.?
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 6/11/2004 at 07:34 AM |
|
|
scroll.tpl0.js
Find more details on scroller setup in the product documentatinon:
http://www.softcomplex.com/products/tigra_scroller/docs/
|
|
|
Bags_55
Newbie
Posts: 1
Registered: 6/19/2004
Location: Oka, Quebec, Canada
Member Is Offline
|
| posted on 6/19/2004 at 10:57 PM |
|
|
Multiple content files
Is it possible to someone to explain to a very newbie how to do it, please?
Many thanks in advance.
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 6/20/2004 at 12:20 PM |
|
|
First you should understand that Tigra Scrollerw works with items, items structure is defined in scroll_tpl.js file via ITEMS variable. Items are
elements of ITEMS var enclosed within curly brackets. Each item's content could be set via 'file' key ('file':
'../s0_data/cont2.html') or via 'content' key ('content' : '<b><center>Tigra Scroller
Advantages</center></b>'). You could have as many items in your scroller as you wish, just define them coma separated.
|
|
|
Norbert
Junior Member
Posts: 2
Registered: 10/6/2004
Member Is Offline
|
| posted on 10/6/2004 at 11:18 AM |
|
|
HTML files
I've have three html files specified in the s2_data directory named cont1.htm, cont2.htm and cont3.htm, each with content for the scroller.
I have tried various options in the scroll.tpl2.js file to get them to run but to no avail.
The closest I can get is the following:-
ITEMS = [{'file' : 's2_data/cont3.htm'},{'file' : 's2_data/cont2.htm'},{'file' :'s2_data/cont1.htm','content' : '','pause_b' : 0,'pause_a' : 0}]
Is there another way to specify these files so then run in order:- 1, 2 and then 3.
As you can see, at the moment, they run backwards!
Thanks for any help.
Nick
|
|
|
Norbert
Junior Member
Posts: 2
Registered: 10/6/2004
Member Is Offline
|
| posted on 10/6/2004 at 11:22 AM |
|
|
Oh, I forgot.
What I'm trying to achieve is the effect is the vertical scoller demo; two blocks of info that stop at the top of each block as it scolls
around.
Thanks.
|
|
|