Hi there…
I am trying to make a marquee that will display quite a big text, breaking this same text each 51 characters and continue untill all the text from the file is displayed. THE fuc…g problem is that it doesnt loop, it doesnt start again to display the bloody text from begining. Here is the actual code:
var i = 0;
texteffect = "";
var pos=0;
var times=0;
function textwritter()
{
texteffect = txt.slice(pos, i);
// if ((texteffect.length % txt.length) ==0) <--Repeats, but doesnt display all.
if ((texteffect.length % 51) == 0)
{
pos = texteffect.length;
i=texteffect.length;
pos = pos*times;
i = i * times;
times++;
}
i++;
}
var intervalID = setInterval(textwritter, speed);
stop();
PLEASE HELP!
Thanks a lot.
Cheers.
Leo75.
The files are attached.