Template:Menu

From 2012.igem.org

(Difference between revisions)
Line 64: Line 64:
document.getElementById("y").innerHTML = y;
document.getElementById("y").innerHTML = y;
 +
 +
        var xx = evnt.clientY;
 +
var yy = evnt.clientX;
 +
 +
        var kidsG = document.getElementById("kids_g").style;
   
   
-
var kidsG = document.getElementById("kids_g").style;
+
kidsG.top = xx + "px";
-
+
kidsG.left = yy + "px";
-
kidsG.top = x + "px";
+
-
kidsG.left = y + "px";
+
   
   
document.getElementById("x").innerHTML = x;
document.getElementById("x").innerHTML = x;
document.getElementById("y").innerHTML = y;
document.getElementById("y").innerHTML = y;
 +
        document.getElementById("xx").innerHTML = x;
 +
document.getElementById("yy").innerHTML = y;
   }
   }

Revision as of 17:15, 26 September 2012

Warsaw Team