Forum Moderators: open

Message Too Old, No Replies

moving text (progress status)

         

webnoob

11:18 pm on Sep 28, 2005 (gmt 0)

10+ Year Member



i'd like to make four dots "...." pluse for around 8 seconds, to give a progress indicator appearance.

is this possible and can anyone provide some examples?

thanks.

garann

12:23 am on Sep 29, 2005 (gmt 0)

10+ Year Member



I think you want something like this:


<script type="text/javascript">
var prog = ".";
function progress() {
prog = (prog.length > 3)? "." : prog + ".";
document.getElementById("dots").innerHTML = prog;
self.setTimeout('progress()', 5000);
}
</script>
...
<body onload="progress()">
...
<p>Waiting <span id="dots">.</span></p>

(I know it's not what the cool kids are doing, but it might be easier to just use an animated gif.)