function MM_over(mmObj) {
var mSubObj = mmObj.getElementsByTagName("div")[0];
mSubObj.style.display = "block";
mSubObj.style.backgroundColor = "#90d7ec";
}
function MM_out(mmObj) {
var mSubObj = mmObj.getElementsByTagName("div")[0];
mSubObj.style.display = "none";
}
<div οnmοuseοver="MM_over(this)" οnmοuseοut="MM_out(this)" style="width:100px;position:relative;">鼠标移动到这里
<div style="width:100px;height:100px;display:none;position:absolute;left:40px;top:15px;z-inde:5;"><p><a href="#"> 这是一个div</a></p></div>
</div>