aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org/old/nettkart-continuous.html
blob: e51eea0fe93a4996181f24b6561cdd6e61b9ffe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
  <body>
    <div id="d"></div>
    <script type="text/javascript">
    <!--
       var existing_img = null;

       function load_new() {
           var i = document.createElement('img');
	   i.onload = function() { loaded(i); };
           i.style.display = 'none';
           i.src = '/nettkart.pl?random=' + (new Date()).getTime();
           document.getElementById('d').appendChild(i);
       }

       function loaded(i) {
           i.style.display = '';

           if (existing_img) {
               existing_img.parentElement.removeChild(existing_img);
           }
           existing_img = i;
       
           setTimeout(function() { load_new(); }, 10000);
       }
       
       load_new();
    -->
    </script>
  </body>
</html>