Write a code to create a scrolling text in a text box

SHARE
Write a code to create a scrolling text in a text box

Code

<html>
<script>
var sp;
var k;
k=0;
sp=" ";
function scroll()

{
f1.t1.value=sp+"welcome";
sp=sp+" ";
k=k+1;

if(k>=30)
{
sp=" "
k=0;
}

window.setTimeout("scroll()",100);
}
</script>
<body onload="scroll()">
<form id="f1" method="post">
<input type="text" size="50" id="t1">
</form>
</body>
</html>

output



Hope you all will enjoy this Post. Any kind of positive suggestions regarding this post are heartly accepted. If any one has problem with this post content, kindly let me know through email , i will update or remove this post as soon as possible

Thanks

Regards

Ketan Joshi

SA Palanpur HO

Mo no:+91 8866984506

eMail : k9724675876@gmail.com
SHARE

Author: verified_user

0 Comments:

; //]]>