using the following snippet to intimate a user that a certain task is been going on while the page loads :
it works quite well but when i tried adding a flash animation in between the <div> tags(in palce of task going on eg. Searching, please wait..., it doesnt work..any idea wat could be wrong or how to go about it?
Code:
<script type="text/javascript">
<!-- Begin
document.write('<div id="loading">task going on eg. Searching, please wait...
</div>');
window.onload=function(){
document.getElementById("loading").style.display="none";
}
// End -->
</script>