»
EnglishFrenchVietnamese

Print - Message come and go - JavaScriptBank.com

Full version: jsB@nk » Status » Status » Message come and go
URL: http://www.javascriptbank.com/message-come-and-go.html

Message come and go © JavaScriptBank.comThe effect creates a message come and go in status bar constantly.

Full version: jsB@nk » Status » Status » Message come and go
URL: http://www.javascriptbank.com/message-come-and-go.html



JavaScript
<SCRIPT language=JavaScript>//Put Your Message between the asteriks * * don't remove them//var yourwords = "* Free Java Scripts from the Source! *";var buffer1="                        ";var buffer2="                        ";var message1=buffer1+yourwords+buffer2;var dir = "left";var speed = 75;function pingpong(){if (dir == "left")  {    message2=message1.substring(2,message1.length)+"  ";    window.status=message2;    setTimeout("pingpong();",speed);    message1=message2;    if (message1.substring(0,1) == "*") dir="right";  }else  {    message2="  "+message1.substring(0,message1.length-2);    window.status=message2;    setTimeout("pingpong();",speed);    message1=message2;    if (message1.substring(message1.length-1,message1.length) == "*") dir="left";  }}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onLoad="pingpong()"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->