Hello. I have created a DIV that is invisible by default. I want it to be visible at the beginning of the script and then hide at the end… This, however does not work:
[code]
<script>
document.getElementById(‘loading’).style.display=’block’;
…lots of javascript
document.getElementById(‘loading’).style.display=’none’;
</script>
Because it seems like it starts trying to render the HTML before it shows the popup window.. So really, what happens is, it does what is between the block/none tags, and THEN renders the block/none afterwards.. Really fast-like. So you never see it…
So, instead, you get..
looooong paaaaaaause.. really fast: SHOW–HIDE.
Any way to work around that?
Any help is greatly appreciated.
dep