鼠标悬浮出现下拉信息
/*--------------html代码-------------*/
<div id="navigation">
<div id="user-list" >
<div >
<li>
<a href="#">信息浏览</a>
</li>
<li>
<a href="#">信息修改</a>
</li>
<li>
<a href="#">密码修改</a>
</li>
<li>
<a href="#">退 出</a>
</li>
</div>
</div>
</div>
/*----------------css代码--------------------*/
#navigation{ width:220px; height:27px; background:url(../images/navigation.png) no-repeat;margin-left:-8px; padding-top:5px; margin-top:-10px;}
#user-list{position:absolute;width:135px; height:16px; margin-left:23px; margin-top:15px;}
.user{position:relative;width:153px; height:16px; margin-left:13px; margin-top:-15px; cursor:pointer; overflow:hidden;}
.user #tu1{ width:12px; height:7px; background:url(../images/tu1.png) no-repeat; margin-top:5px; overflow:hidden;}
.user #username{ font-family:"黑体"; font-size:14px; color:#FFFFFF; padding-left:20px; margin-top:-12px;}
.user #time{font-family:"黑体"; font-size:14px; color:#FFFFFF; margin-left:80px; margin-top:-16px;}
#user-list-bd{ background:#3366cc; position:relative;width:152px; height:100px; margin-top:6px; margin-left:10px; border-left:1px solid #999999;border-right:1px solid #999999;border-bottom:1px solid #999999;}
#user-list-bd li{ list-style:none;margin-top:5px;}
#user-list-bd li a:link,#user-list-bd li a:visited{ text-decoration:none; font-size:12px; color:#FFFFFF;margin-left:30px;}
#user-list-bd li a:hover{ text-decoration:underline; }
/*-------------------------jquery代码----------------------*/
$(document).ready(function(){
$("#user-list-bd").hide();
var lr_systembtn = $("#user-list");
var lr_menu = $("#user-list-bd");
lr_systembtn.mouseenter(function(){
t_delay= setTimeout(function(){
lr_menu.fadeIn();
},200);
});
lr_systembtn.mouseleave(function(){
clearTimeout(t_delay);
lr_menu.fadeOut();
});
});