jQuery 导航菜单

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shangpinguanli.aspx.cs" Inherits="shangpinguanli" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>jQuery中的mouseenter和mouseleave事件_365css</title>
<style type="text/css">
*{padding:0;margin:0; font-size:12px}
ol,ul{list-style:none}
.sns-func{ position:relative; margin:0 auto; width:200px; height:20px; line-height:20px; background-color:#999}
.sns-func li.func-list{float:left; padding:0 8px;line-height:20px; font-family:"/5b8b/4f53"}
.sns-func li.sns-setting{ border:1px solid #D1D6E2;padding:0 7px; border-bottom:none; background-color:#FFFFFF; position:relative; z-index:100 }
.sns-func .sns-setting-box{position:absolute; top:20px; left:0px; width:66px; border:1px solid #CDCDCD; background-color:#FFFFFF; z-index:99;}
.sns-func .sns-setting-box li.on a{background-color:#CFDDE3;}
.sns-func .sns-setting-box a:link,.sns-func .sns-setting-box a:visited{ display:block; height:17px; color:#555555;text-decoration:none; padding:5px 0 0 7px; line-height:1}
.sns-func .sns-setting-box a:hover{background-color:#CFDDE3;color:#555555;text-decoration:none;}
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
//    $(document).ready(function() {
//        $("#sel-down-w").mousemove(function() {
//        $(".sns-setting-box").slideDown()
//            .mouseleave(function() {
//                $(this).slideUp()
//            })
//        })
//     
//       
//       
//       
//        //$("#sel-down-w").mouseout(function() { $(".sns-setting-box").slideUp() })

//    });

    $(document).ready(function() {

    $('#shezhi').hover(
        function() {
            //show its submenu
          $('#divSetting', this).slideDown(300);

        },
       function() {
           //hide its submenu
         $('#divSetting', this).slideUp(300);
       }
    );

    });
</script>

</head>
<body>
    <div class="sns-func" id ="shezhi">
     <a href="#" id="sel-down-w" >设置</a>
      <div class="sns-setting-box" id="divSetting" style="display:none">
        <ul>
<li><a href="#">玄幻奇幻</a></li>
<li><a href="#">武侠奇侠</a></li>
<li><a href="#">都市言情</a></li>
<li><a href="#">青春校园</a></li>
<li><a href="#">另类小说</a></li>
</ul>
      </div>
 
    </div>

</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值