Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Randomizing...
sgrebs
Junior Member

Posts: 5
Registered: 10/24/2003
Member Is Offline
posted on 10/24/2003 at 11:20 AM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 10/24/2003 at 02:15 PM Reply With Quote

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();
View User's Profile View All Posts By User U2U Member
sgrebs
Junior Member

Posts: 5
Registered: 10/24/2003
Member Is Offline
posted on 10/24/2003 at 06:12 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
sgrebs
Junior Member

Posts: 5
Registered: 10/24/2003
Member Is Offline
posted on 11/3/2003 at 02:28 PM Reply With Quote
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 e 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 saro l\'Amore!. S. Teresa di Gesu Bambino</p>',
'pause_b': 10,
'pause_a': 0
},
{
'file': '',
'content': '<p><center>Amare e dare tutto, e dare anche se stessi. S. Teresa di Gesu Bambino></p>',
'pause_b': 10,
'pause_a': 0
},
{
'file': '',
'content': '<p><center>Dio e la verita. Chi cerca la verita, 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.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 12/1/2003 at 09:33 AM Reply With Quote

Please contact us at http://www.softcomplex.com/support/ Our specialists are ready to do it for you for low hourly rate.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Multiple vertical scrolling
Horizontal scrolling
Free Download Free Download
Product Documentation Documentation:
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004