window.onload = function () {
document.getElementById('ak').onmouseover = function () {
if (!document.getElementById('imxy')) {
var im = document.createElement('img');
im.id = 'imxy';
im.src = 'aa.jpg';
im.style.position = 'absolute';
var x = this.offsetLeft + 'px';
var y = this.offsetTop + this.offsetHeight + 'px';
im.style.left = x;
im.style.top = y;
document.body.appendChild(im);
}
};
document.getElementById('ak').onmouseout = function () {
if (document.getElementById('imxy')) {
document.body.removeChild(document.getElementById('imxy'));
}
};
};
SSSSSSSS<a id="ak" href="#">AAA</a>ZZZZZZZZZZZZZZ