PDA

View Full Version : Typing Scroll Script



he_the_mystery
09-05-2006, 10:29 PM
hi

i just find this below mentioned script can some one plz tell me how i can make the same script for multiple lines and paragraphs and size 304 to xxx means as much as data i wanna feed in it it starts working.

<script language="JavaScript">


var max=0;
function textlist()
{
max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i];
}
tl=new textlist
(
"I am Karen Gould and I thank you for visiting my site. Work as Worship came about as a natural outflowing of my own inner work and a desire to serve humanity through my gifts and talents. I believe each person has a unique purpose or path and aligning one's energies to his or her natural calling is conducive to life."
);
var x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l)
{
pos=0;
setTimeout("textticker()",1000);
x++;
if(x==max)
x=0;
l=tl[x].length;
} else
setTimeout("textticker()",50);
}

</script>
<script LANGUAGE="JavaScript">

document.write("<FORM NAME=\"tickform\">");
document.write("<INPUT TYPE=\"TEXT\" NAME=\"tickfield\" SIZE=\"304\">");
document.write("</FORM>");
textticker();

</script>