如何实现mouseover出现如这论坛左边的头像出现详细信息框 http://topic.csdn.net/u/20081018/12/16095d70-fb94-4315-a6ce-8f77d37e0f4a.html看这里 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就是DIV+CSS实现的TIP效果 非常感谢2楼!原来不用Javascript也能实现这样的功能!看来我要多看DIV+CSS教程才行! 接点分<style type="text/css">.f{cursor:pointer;position:absolute;width:357px;height:194px;padding:15px 0 0 50px;background-image:url(http://static5.photo.sina.com.cn/middle/4ef69b3dg5785994300a4&000.jpg)}</style><script>var oo = truefunction create(){if(oo==true){oo=falsevar div =document.createElement("div")div.className="f"div.id="div"div.innerHTML="<a href='#'>大法师</a><br>山丘之王<br>血法师<br>怕拉丁"document.body.appendChild(div)document.getElementById("div").style.left=document.getElementById("text").offsetLeft+30document.getElementById("div").style.top=document.getElementById("text").offsetTopdiv.onmouseout=del}}function del(e){e=e||event;var obj=e.relatedTarget||e.toElement;var div =document.getElementById("div")if(div.contains(obj))return;document.body.removeChild(div)oo=true}</script><span id="text" onmouseover="create()" style="cursor:pointer;" onMouseOut="del()" >人族</span><br> 【分享】Js俄罗斯方块 Jquery autocomplete疑问 求高手指点用ajax获取的数据来操作页面的相关代码 javascript的问题: alert出不来,怎么办? 获取<a>父对象 谁能读懂这段代码? 求一段将IE7升级到IE8的js脚本 如何在本地机 打开*.xml文件??? 文件选择窗口中列出*.csv ,用户只能选择*.csv 文件 怎么让HTML页面打开的时候,以规定的高度和宽度,显示在制定的位置? ASP进行文件传送,如何用JS实现不弹出新窗口? 555 F C KEditor 又见F C KEditor 啊5555以后打死也不用这种东西了啊55好难控制啊
<style type="text/css">
.f{
cursor:pointer;
position:absolute;
width:357px;
height:194px;
padding:15px 0 0 50px;
background-image:url(http://static5.photo.sina.com.cn/middle/4ef69b3dg5785994300a4&000.jpg)
}
</style>
<script>
var oo = true
function create(){
if(oo==true){
oo=false
var div =document.createElement("div")
div.className="f"
div.id="div"
div.innerHTML="<a href='#'>大法师</a><br>山丘之王<br>血法师<br>怕拉丁"
document.body.appendChild(div)
document.getElementById("div").style.left=document.getElementById("text").offsetLeft+30
document.getElementById("div").style.top=document.getElementById("text").offsetTop
div.onmouseout=del
}}function del(e){
e=e||event;
var obj=e.relatedTarget||e.toElement;
var div =document.getElementById("div")
if(div.contains(obj))return;
document.body.removeChild(div)
oo=true
}</script>
<span id="text" onmouseover="create()" style="cursor:pointer;" onMouseOut="del()" >人族</span><br>