Home / code / javascript / scripts

Statusbar, scroll text

Writer: Christophe Wolfs
Published: 27 March 2008

Script that makes the text to upper in the status bar. You can see the example in the statusbar below. Just copy everything and place it in the head-part.

<script language="JavaScript">
/*
Script that scrolls the text in the status bar.
Find more at http://www.webmaster2020.com
*/
// Scrolling message settings
var text="Welcome to webmaster2020";
var speed=100;
var x=0;

function bb()
{
  var a=text.substring(0,x);
  var b=text.substring(x,x+1).toUpperCase();
  var c=text.substring(x+1,text.length);
  window.status=a+b+c;
  if(x==text.length) x=0;
  else x++;
  setTimeout("bb()",speed);
}

bb();
//-->
</script>

 

TOP