这个论坛鼠标放在头像上旁边就显示一个信息框,怎么实现的
这个论坛鼠标放在头像上旁边就显示一个信息框,怎么实现的?
------解决方案--------------------
------解决方案--------------------
换图做个测试:参考:
<script> <br />function show(_this) { <br /> document.getElementById("enlarge_images").innerHTML = "<img src='" + _this.src + "' alt="这个论坛鼠标放在头像上旁边就显示一个信息框,如何实现的" >"; <br />} <br />function hide(_this) { <br /> document.getElementById("enlarge_images").innerHTML = ""; <br />} <br />function move_layer(event){ <br /> event = event || window.event; <br /> enlarge_images.style.left=event.clientX+document.body.scrollLeft+10; <br /> enlarge_images.style.top=event.clientY+document.body.scrollTop+10; <br />} <br />document.onmousemove =move_layer; <br /></script>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn