Team:Jilin China/js/pic move

function DivFlying() {

 var div1 = document.getElementById("divFlyzl");
 var div2 = document.getElementById("divFlymz");
 var div3 = document.getElementById("divFlyjun");
 /*if (!div1) {
return;
 }*/
 var intX = window.event.clientX;
 var intY = window.event.clientY;
 div1.style.left = (intX/20) -100 + "px";
 div1.style.top = (intY/20) +50 + "px";
 div2.style.left = (intX/10) -110 + "px";
 div2.style.top = (intY/10) +25 + "px";
 div3.style.left = (intX/5) -200 + "px";
 div3.style.top = (intY/5) + "px";

} document.onmousemove = DivFlying;