TextBox Message Rotates

[Total: 0    Average: 0/5]

This rotates your message inside a form text box.

Body Code:

<script language="JavaScript">
<!-- begin
var id,pause=0,position=0;
function edoscroller() {
        // variables declaration
        var i,k,msg="           Hello, everybody...            Write here smth";
        // increase msg
        k=(100/msg.length)+1;
        for(i=0;i<=k;i++) msg+=" "+msg;
        // show it to the window
        document.form.edoscroller.value=msg.substring(position,position+100);
        // set new position
        if(position++==100) position=0;
        // repeat at entered speed
        id=setTimeout("edoscroller()",100); }
// end -->
</script>
<center>
<form name="form">
<input type="text" name="edoscroller" size=20 value="">
</form>
</center>
<script>
edoscroller();
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *