ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

ANIMATED STATUS BAR MESSAGE

This JavaScript displays an Animated Status Bar Message:

 

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>

<SCRIPT>
<!--
var messagetext = "Your Animated Message Here!"
var thetext = "";
var started = false;
var step = 0;
var times = 1;

function statusbarmessage() {
times--;
if (!times) {
if (!started) {
started = true;
window.status = messagetext;
setTimeout("anim()", 1);
}
thetext = messagetext;
}
}

function anim() {
step++;
if (step==7) step = 1;
if (step==1) window.status = '>===' + thetext + '===<';
if (step==2) window.status = '=>==' + thetext + '==<=';
if (step==3) window.status = '>=>=' + thetext + '=<=<';
if (step==4) window.status = '=>=>' + thetext + '<=<=';
if (step==5) window.status = '==>=' + thetext + '=<==';
if (step==6) window.status = '===>' + thetext + '<==='
setTimeout("anim()", 200); }

//-->
</SCRIPT>
</HEAD>

<BODY OnLoad="statusbarmessage()">

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
21 March 2010