<html>
<head>
<script>
var count = 1; //# of dots following 'Loading'
var interval = 5; //# of dots allowed following 'Loading'
var to; //timeout object
var ready = false;
//start message even before document has loaded
loading();
function loading()
{
if(ready)
{
if(count == interval)
{
//reset to one dot
[b] loadingSpan.innerHTML = "Loading";
dotSpan.innerHTML = ".";[/b]
count = 1;
}//end if
else
{
//add a dot
count++;
[b]loadingSpan.innerHTML = "Loading";
dotSpan.innerHTML += ".";[/b]
}//end else
}//end if
//set thread to run independent of page loading
to = setTimeout("loading()",1000);
}//end loading()
function quitTimeout()
{
//interrupt the 'Loading.....' message thread
clearTimeout(to);
loadingSpan.innerHTML = ""; //clear it out
[b] dotSpan.innerHTML = ""; //clear it out
loadingTable.style.visibility = 'hidden';
loadingTable.style.display = 'none';[/b]
ready = false; //this line not really needed
}//end quitTimeout()
</script>
</head>
<body onload='quitTimeout()'>
[b]
<!-- NOTE: the problem with just centering the message using CENTER tags would be that as the dots (...) keep getting added to the message, it keeps re-centering. With the table method, below, the message stays put. Check it out. -->
<span id='loadingTable'>
<table align='center' width='100%'>
<tr>
<td width='50%' align='right'>
<span id='loadingSpan'> </span>
</td>
<td width='50%' align='left'>
<span id='dotSpan'> </span>
</td>
</tr>
</table>
</span>
[/b]
<script>
ready = true;
</script>
<br />
The rest of your HTML here.
</body>
</html>