January 2001
Beginner
312 pages
6h 4m
English
Another common JavaScript-powered effect is the scrolling message in the status bar of the browser. It's a great way to pass small amounts of information to the visitor without having to resort to alert boxes. Even though the status bar is small and unobtrusive, it is still effective.
Here is a simple example that places a little information in the status bar when the user moves the mouse over an image hyperlink:
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!-- Cloaking device on!
function addMsg()
{
window.status="Sample image";
return true;
}
// Cloaking device off -->
</script>
</head>
<body>
<a href="moveon.htm" onMouseover="window.status='Sample image'; return true"
Read now
Unlock full access