GIF animé pendant le chargement de la page ne s'anime pas

J'ai une page qui est généré à l'aide de serverside asp.net (C#). Il faut un certain temps pour que la page se charge, comme elle l'a jusqu'à 100 iframes. Je veux montrer une "veuillez patienter" gif animé pendant le chargement de la page, j'ai donc le suivant:

<style type="text/css">
    #blackout
    {
       filter:alpha(opacity=70); 
       -moz-opacity:0.7; 
       opacity:0.7; 
       position:absolute;
       background-color:#222233;
       z-index:50; 
       left:0px;
       top:0px;
       right:0px;
       bottom:0px;
       width:102%;
       height:102%;
    }
    #loading
    {
       filter:alpha(opacity=100); 
       -moz-opacity:1; 
       opacity:1; 
        position:fixed;
        text-align:center;
        background-color:#EEEEEE;
        top:50%;
        left:50%;
        margin-top:-55px;
        margin-left:-75px;
        width:150px;
        height:75px;
        z-index:100; 
    }
    </style>
</head>
<body onload="document.getElementById('loading').style.visibility='hidden';document.getElementById('loading').style.display='none';document.getElementById('blackout').style.visibility='hidden';document.getElementById('blackout').style.display='none';">
    <div id="blackout">
        <div id="loading"><img id="loadinggif" src="graphics/loading.gif" alt="" style="margin-top:12px; "/><br />Please wait...</div>
        <script type="text/javascript" language="javascript">
            document.getElementById('loadinggif').src = 'graphics/loading.gif';
        </script>
    </div>
    <form id="form1" runat="server">

Donc, le problème est que le chargement gif n'est pas en mouvement. J'ai essayé d'utiliser

setTimeout("document.getElementById('loadinggif').src = 'graphics/loading.gif'", 100);

trop, et il a fait le gif bouger "un peu", mais pas comme prévu.

Comment puis-je faire animer des nations unies s'est interrompue au cours de la charge?

OriginalL'auteur Jesper | 2011-04-29