鼠标移动到具体位置,显示图片

来源:互联网 发布:学历歧视数据 编辑:程序博客网 时间:2024/04/27 16:04
<a title="" onmouseover="javascript:showImg('a1');" onmouseout="javascript:hideImg('a1');"><img src="/images/yj.png"></a>

<script type="text/javascript">
function showImg(imgid){ document.getElementById(imgid).style.display = "block"; } 
function hideImg(imgid){ document.getElementById(imgid).style.display = "none"; } 
</script>
0 0