Nate Admin
Posts : 159 Join date : 2010-01-11
| Subject: Slide Text Code Sun Feb 07, 2010 10:50 pm | |
| Slide Text Code, brought to you by Nate: - Code:
-
<center> <head> <title>Nate's Sliding Text</title> <script>
message = "Change this to anything you want. "; initial_delay = 0; scroll_delay = 75; max_indent = 50;
function scroll () { message = message . substring (1, message . length) + message . substring (0, 1); document . scrollbox_form . scrollbox . value = message; window . setTimeout ("scroll ()", scroll_delay); }
function start_scroll () { for (var i = 1; i <= max_indent; i ++) message = " " + message; scrollbox = document . scrollbox_form . scrollbox; window . setTimeout ("scroll ()", initial_delay); }
</script> </head> <body onLoad="start_scroll ();"> Coded by Nate <form name=scrollbox_form> <input type=text name=scrollbox size=25> </form> </center> </body> | |
|