Windows statusbar scrolling message : Status Bar « Animation « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var counter = 0
var msg = "Thanks";
function scrollMsg()
{
    if (counter < 10)
    {
        window.status = msg;
        msg = msg.substring(1,msg.length) + msg.substring(0,1);
        setTimeout("scrollMsg()",150);
        counter += 1
    } else {
        window.status = "";
    }
}
//  -->
</script>
</head>
<body onload="scrollMsg()">

</body>
</html>








31.2.Status Bar
31.2.1.Window status bar animation (IE)
31.2.2.Windows statusbar scrolling message