event = fixEvent(event); var k = event.pageX; var c = event.pageY; newImg.style.left = k+'px'; newImg.style.top= c+'px';