Nov 16, 2002 1 #2 Raymar Programmer Sep 5, 2001 1 AU hi docjohn52, Give this a go. <html> <head><title>Scrolling Text</title> <script type="text/javascript" language="JavaScript"> <!-- var tmp = ""; function ScrollThis(txt,speed){ for (i=0; i<125; i++){ txt += " "; } window.status = txt; setInterval("ScrollIt()",speed); } function ScrollIt(){ tmp = window.status; window.status = tmp.substring(1, tmp.length) + tmp.substring(0,1); } --> </script> </head> <body onload="ScrollThis('This is a line of text',50);"> </body> </html> hope this helps. Upvote 0 Downvote
hi docjohn52, Give this a go. <html> <head><title>Scrolling Text</title> <script type="text/javascript" language="JavaScript"> <!-- var tmp = ""; function ScrollThis(txt,speed){ for (i=0; i<125; i++){ txt += " "; } window.status = txt; setInterval("ScrollIt()",speed); } function ScrollIt(){ tmp = window.status; window.status = tmp.substring(1, tmp.length) + tmp.substring(0,1); } --> </script> </head> <body onload="ScrollThis('This is a line of text',50);"> </body> </html> hope this helps.
Nov 16, 2002 Thread starter #3 docjohn52 Programmer Sep 28, 2002 114 US Works like a champ Raymar Thanks and a star from John Upvote 0 Downvote