Source

Selador / divanim.php

Full commit
<html><head>
<script type="text/javascript">

cloud_x = 0;
cloud_y = 0;

function start_cloud ()
{
  cloud = document.createElement("img");
  var map = document.getElementById ("karte");

  var imagesrc = document.createAttribute("src");
  imagesrc.nodeValue = "cloud1.png";
  cloud.setAttributeNode(imagesrc);
  map.appendChild(cloud);
  cloud.style.zIndex="1000";
  cloud.style.position = "absolute";
  cloudinterval = setInterval ('cloudmove()', 200);
}

function cloudmove ()
{
  cloud_x++;
  cloud_y++;

  cloud.style.top = cloud_y;
  cloud.style.left = cloud_x;
}


</script>
</head>
<body onload="start_cloud()">

<div id="karte" style="width:640px; height:480px">
</div>
</body>