<script>
function showImg(event,imgId){
var x = document.body.scrollLeft+event.clientX;
var y = y=document.body.scrollTop+event.clientY;
document.getElementById(imgId).style.display="block";
document.getElementById(imgId).style.left=x;
document.getElementById(imgId).style.top=y;
}
function hiddenImg(imgId){
document.getElementById(imgId).style.display="none";
}
</script>
-----------以上放在HEAD里-----------
-----------以下为图片代码-----------
<img src="images/ad-03.jpg" width="140" height="90" border="0" onMouseOver="javascript:showImg(event,'asaiblog')" onMouseOut="javascript:hiddenImg('asaiblog')"/></a>
<div id="asaiblog"><div style="padding-bottom:5px; border-bottom:1px #000000 dashed; font-size:15px; color:#990000; font-weight:bold;">公司名称</div>
<img src="images/ad-04.jpg" />
<div style="font-size:12px; line-height:20px;">相关说明:</div>
</div>
[ 此帖被听听4d28在2014-04-03 19:31重新编辑 ]