Home / code

Statusbar, slow text

Writer: Christophe Wolfs
Published: 27 March 2008

Script that lets the text comes together in the status bar.
You can see the example in the statusbar below.
Just copy everything in the head-part.

<script language="JavaScript">
<!--
/*
Script that lets the text comes together in the status bar.
Find more at http://www.webmaster2020.com
*/

//set message
msg = "Hi welcome !";

timeID = 10;
stcnt = 16;
wmsg = new Array(33);
wmsg[0]=msg;
blnk = "                                                               ";

for (i=1;i<32;i++)
{
  b = blnk.substring(0,i);
  wmsg[i]="";
  for (j=0;j -1) str = wmsg[stcnt]; else str = wmsg[0];
  if (stcnt-- < -40) stcnt=31;
  status = str;
  clearTimeout(timeID);
  timeID = setTimeout("wipe()",100);
}

wipe()
// -->
</script>

 

TOP