C & G web

Example - Status Line Scrolling Message Example

The Status bar (lower left) -- Reports on the progress of the data download.

Using JavaScript message can be written to the Status Bar.

The HTML/JavaScript

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
 <title>Status Line Scrolling Message Example</title>
 
<script language="JavaScript">
<!--- 
var msg = "Status Line Scrolling Message Example";
var spacer = "...          ...";
var pos = 0;
function ScrollMessage()

{
window.status = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("ScrollMessage()",200);
}

// -->
</script>

</head>

<body onload="ScrollMessage()">

<h1>Status Line Scrolling Message Example</h1>

</body>
</html>

Previous page...

Back to Top of Page

Computeach International Ltd

Christopher Ward London Limited

Christopher Ward London Limited