I need to show a ajax loading image while the whole page is loading.
This the html:
<div id="loading">
<img src="images/ajax_loader.gif" >
</div>
this is the script:
<script type="text/javascript">
$(window).load(function() {
$('#loading').hide();
});
</script>
for some reason, when I load the page, I dont see the animation. I do see the image, any ideas what might be wrong here?