sgrebs
Junior Member
Posts: 5
Registered: 10/24/2003
Member Is Offline
|
| posted on 10/24/2003 at 11:20 AM |
|
|
Randomizing...
Hi!
I would like to use tigra scroller in more pages of a web site.
I don't use frame or similar, so I have to put the scroller script in each page.
Is it possible to make the script chooses the text to show in "random mode", just to have different visualisation every time a website user
changes page?
Excuse me for my bad English...
Thank you.
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 10/24/2003 at 02:15 PM |
|
|
You could manually assign value to content/file key of your ITEMS variable before calling scroller's constructor. E.g.
function choose_random_content(){
...
return s_content;
}
function choose_random_file(){
...
return s_file;
}
ITEMS['content'] = choose_random_content();
or
ITEMS['file'] = choose_random_file();
|
|
|
sgrebs
Junior Member
Posts: 5
Registered: 10/24/2003
Member Is Offline
|
| posted on 10/24/2003 at 06:12 PM |
|
|
Ok, Thank you.
Thank you.
I'm not a JS writer, so I won't use Tigra scroller (because I can't...)
I would like that.
Bye
|
|
|
sgrebs
Junior Member
Posts: 5
Registered: 10/24/2003
Member Is Offline
|
| posted on 11/3/2003 at 02:28 PM |
|
|
Help me please...
... but I like it very very much, so I will try to change it for my needs if you will be so kindly to explain me how to do that.
This is the script I'm using for the sample page at:
http://www.cdvnoto.it/tigrascroller/index.htm
var
LOOK = {
// scroller box size: [width, height]
'size' : [760, 15],
// for on-demand mode: path to image for scrolling items backward
// if relative than to Tscroll_path_to_files
'up' : 'alf.gif',
// for on-demand mode: path to image for scrolling items forward
// if relative than to Tscroll_path_to_files
'dn' : 'art.gif'
},
BEHAVE = {
// if scrolling mode is auto (true / false);
'auto' : true,
// if scrolling direction is vertical (true / false, false means horisontal)
'vertical' : false,
// scrolling speed, pixels per 40 miliseconds;
// for auto mode use negative value to reverse scrolling direction
'speed' : 10
},
// a data to build scroll window content
ITEMS = [
{ // file to get content for item from; if is set 'content' property doesn't matter
// only body of HTML document is taken to become scroller item content
// note: external files require time for loading
// it is RECOMMENDED to use content property to speed loading up
// please, DON'T forget to set ALL IMAGE SIZES
// in either external file or in 'content' string for scroller script
// to be able to estimate item sizes
'file' : '',
// string to be displayed as item content,
// is RECOMMENDED to be used as an alternative to 'file' property
'content' : '<b><center>Inviaci le tue frasi...</center></b>',
// pause duration when item top gets top of the scroller box, seconds
'pause_b' : 10,
// pause duration when item bottom gets bottom of the scroller box, seconds
'pause_a' : 0
},
{
'file': '',
'content': '<p><center>Se sarete quello che dovete essere, metterete fuoco in tutto il mondo. Santa Caterina da
Siena</p>',
'pause_b': 10,
'pause_a': 0
},
{
'file' : '',
'content' : '<p><center>In segreto Dio parla, a molti parla nel cuore; e grande è il suono nel grande silenzio del cuore.
S. Agostino</p>',
'pause_b' : 10,
'pause_a' : 0
},
{
'file' : '',
'content' : '<p><div align="center">Dio non guarda tanto all\'importanza delle nostre opere, quanto
all\'amore che le accompagna. S. Teresa d\'Avila</div></p>',
'pause_b' : 10,
'pause_a' : 0
},
{
'file': '',
'content': '<p><center>Nel cuore della Chiesa, mia Madre, io sarò l\'Amore!. S. Teresa di Gesù
Bambino</p>',
'pause_b': 10,
'pause_a': 0
},
{
'file': '',
'content': '<p><center>Amare è dare tutto, è dare anche se stessi. S. Teresa di Gesù Bambino></p>',
'pause_b': 10,
'pause_a': 0
},
{
'file': '',
'content': '<p><center>Dio è la verità. Chi cerca la verità, che lo sappia oppure no, cerca Dio. Suor Teresa Benedetta
della Croce</p>',
'pause_b': 10,
'pause_a': 0
}
]
Help me, please.
Thank you very much.
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 12/1/2003 at 09:33 AM |
|
|
Please contact us at http://www.softcomplex.com/support/ Our specialists are
ready to do it for you for low hourly rate.
|
|
|
|