Code for making the text move in the textbox?

Kmandapalli
Posted by Kmandapalli under JavaScript category on | Points: 40 | Views : 443
<SCRIPT LANGUAGE="JavaScript">

<!-- hide from old browsers

var msg = "www.dotnetfunda.com "



function scrollMsg(){

document.scrollerForm.welcomeMsg.value = msg

msg = msg.substring(1, msg.length) + msg.substring(0, 1)

setTimeout("scrollMsg()", 150)

}

//-->

</SCRIPT>

<BODY ONLOAD="scrollMsg()">

<FORM NAME="scrollerForm">

<INPUT TYPE="text" NAME="welcomeMsg" VALUE="" size=12>

</FORM>

<br />

<font face="Tahoma"><a target="_blank" href="http://www.dotnetfunda.com/"><span style="font-size: 8pt; text-decoration: none">DotNetFunda</span></a></font>
</body>
</html>

Comments or Responses

Login to post response