Racoon200 0 Junior Poster in Training

Is there a way to make than when i mouseover an image, a premade sprite will detect its position and get over it?

for example

var icon = GetElementById('icon')
onmouseover.getPos('icon')
move (sprite) to 'icon'

I know, i dont know a shit about js sorry for that :S