spicymango
Programmer
Hi,
I want to display a message like "In Progress" while my page is still loading. I am trying to achieve it by displaying a DIV, and then hidding it. My code is below. These images gets downloaded fast so hard to tell and test, but based on my logic you see any problem with this?
I want to display a message like "In Progress" while my page is still loading. I am trying to achieve it by displaying a DIV, and then hidding it. My code is below. These images gets downloaded fast so hard to tell and test, but based on my logic you see any problem with this?
Code:
<html>
<head><title></title>
<script>
function testing()
{
document.getElementById('mydiv').style.display = 'none';
}
</script>
</head>
<body >
<div id="mydiv" style="position:absolute; top:130px; left:200px" >
<table><tr><td height= 200 width=500 valign=center align=center bgcolor=yellow><h3>In Progress</h3></td></tr></table>
</div>
<table>
<tr><td><img src="[URL unfurl="true"]http://www.astray.com/static/earth-huge.png"[/URL] border=0 ></td></tr>
<tr><td><img src="[URL unfurl="true"]http://www.astray.com/static/earth-huge.png"[/URL] border=0 ></td></tr>
<tr><td><img src="[URL unfurl="true"]http://www.astray.com/static/earth-huge.png"[/URL] border=0 ></td></tr>
<tr><td><img src="[URL unfurl="true"]http://www.astray.com/static/earth-huge.png"[/URL] border=0 ></td></tr>
<tr><td><img src="[URL unfurl="true"]http://www.astray.com/static/earth-huge.png"[/URL] border=0 ></td></tr>
</table>
<script>
testing();
</script>
</body>
</html>