M
mistral
Below is Typewriter Scroller script. I want adjust is as follows:
remove lower dash "_" out; display text not in form, but inside div,
without any borders (style="visibility:hidden"). Also I need control
via css font size, color, family. How to adjust this?
<script language="javascript" type="text/javascript">
<!-- begin
var max=0;
function textlist()
{
max=textlist.arguments.length; for (i=0; i<max; i++)
this=textlist.arguments;
}
tl=new textlist
(
"Welcome to my website!"
);
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);
}
document.write("<FORM NAME=\"tickform\">");
document.write("<INPUT TYPE=\"TEXT\" NAME=\"tickfield\" SIZE=
\"30\">");
document.write("</FORM>");
document.tickform.tickfield.style.background = '#FFFFCE';
document.tickform.tickfield.style.color = 'red';
textticker();
//-->
</script>
remove lower dash "_" out; display text not in form, but inside div,
without any borders (style="visibility:hidden"). Also I need control
via css font size, color, family. How to adjust this?
<script language="javascript" type="text/javascript">
<!-- begin
var max=0;
function textlist()
{
max=textlist.arguments.length; for (i=0; i<max; i++)
this=textlist.arguments;
}
tl=new textlist
(
"Welcome to my website!"
);
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);
}
document.write("<FORM NAME=\"tickform\">");
document.write("<INPUT TYPE=\"TEXT\" NAME=\"tickfield\" SIZE=
\"30\">");
document.write("</FORM>");
document.tickform.tickfield.style.background = '#FFFFCE';
document.tickform.tickfield.style.color = 'red';
textticker();
//-->
</script>