Line 9: | Line 9: | ||
var offset1 = document.getElementById("team").offsetLeft; | var offset1 = document.getElementById("team").offsetLeft; | ||
var offset2 = document.getElementById("team").offsetTop; | var offset2 = document.getElementById("team").offsetTop; | ||
− | + | alert(offset2); | |
var x=0; //e.pageX; | var x=0; //e.pageX; | ||
var y=0; //e.pageY; | var y=0; //e.pageY; |
Revision as of 19:51, 1 November 2017