这里有点不同的解决方案http://jsfiddle.net/9DD3v/
您可以通过链接的父级触发事件,例如li
html
<ul>
<li>
<a href="#" class="trigger">Show</a>
<div class="profile">
<div class="pop-up">
<div style="margin-top:7px;position:absoult;left:0" ><font color=#f6f907 size=+1><b>Ii</b></font></div>nt.<br>Email : <a href=mailto:d@nt.com>d@nt.com </a> <br>
Website : <a href=http://www.nt.com>www.nt.com</a>
</div>
</li>
<li>
<a href="#" class="trigger">Show</a>
<div class="profile">
<div class="pop-up">
<div style="margin-top:7px;position:absoult;left:0" ><font color=#f6f907 size=+1><b>Ii</b></font></div>nt.<br>Email : <a href=mailto:d@nt.com>d@nt.com </a> <br>
Website : <a href=http://www.nt.com>www.nt.com</a>
</div>
</li>
</ul>
css
ul li {display:relative;float:left;margin-left:10px;}
div.profile{
display: none;
text-align: left;
position: absolute;
z-index:9999;
margin-top: ;
margin-left: ;
width: 300px;
height: 100px;
padding: 0px 10px;
overflow:hidden;
background:#222222 no-repeat;
color: #ffffff;
border: 1px solid #1a1a1a;
font-size: 90%;
border:none;
}
js
$(function(){
$("li").hover(function(){
$(this).children("div").stop().show(500);
},function(){
$(this).children("div").stop().hide(500);
})
});