Javascript language

adplus-dvertising
Status Bar Message
Previous Home Next

Status Bar Message using Java Script

Step 1. Written below code in your application.

<html>
<head>
<script language="javascript">
function scrollit_r21(seed)
{
var msg=" Hi...this is status bar message..
you can use it in your web Application!"
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scrollit_r21(" + seed + ") ";
timerTwo=window.setTimeout(cmd, 100) ;
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit_r21(" + seed + ") ";
window.status=out;
timerTwo=window.setTimeout(cmd, 100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scrollit_r21(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd, 100) ;
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit_r21(100)",75);
}
}

}
</script>
</head>
<body onLoad="timerONE=window.setTimeout ('scrollit_r21(100) ' ,500) ;">
</body>
</html>

Step 2. Run the Application.

Previous Home Next