右上角鼠标感应jquery动感导航菜单弹出特效

2周前 (04-24 15:12)阅读12回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4019
  • 级别管理员
  • 主题803
  • 回复2
楼主

页面右上角鼠标感应导航菜单滑动切换显示特效,jquery实现这个动感导航菜单弹出效果,可根据自己的需求来修改。

<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>右上角鼠标感应jquery动感导航菜单弹出特效_武鸣人</title>
<style>
body {
    margin:0;
    padding:0;
}      
#nav li {margin: 0; padding: 0;display: inline;list-style-type: none;font-size: 12px;}
#nav a:link, #nav a:visited {
   
}
#nav a:hover {color: #fff; background:#FF6A00;}
#nav a:visited.active, #nav a:link.active {background-color: #fff;color: #FF6A00;}
.menu_wuming_ren {
    list-style:none;
    margin: 0;
    float:right;
}
.menu_wuming_ren li {
    float:left;
    margin:0 auto;
    cursor:pointer;
    height:30px;
    padding:30px 5px 5px 5px;
    margin:0px 3px 0px 3px;
    -moz-border-radius: 0px 0px 10px 10px;
    -webkit-border-radius:0px 0px 10px 10px;
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: #FFF;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    font-family: "Lucida Grande",Lucida,Verdana,sans-serif;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
}
</style>
<script type="text/javascript" src="/img/jquery_wuming_ren.js"></script>
<script type="text/javascript">
(function($){
    $.fn.extend({
        tagdrop: function(options) {
var defaults = {
    tagPaddingTop: '90px',
    tagDefaultPaddingTop: '30px',
    bgColor: '#B1CCED',
    bgMoverColor: '#7FB0F0',
textColor: '#e0e0e0',
textDefaultColor: '#fff'
};//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
var options = $.extend(defaults, options);
return this.each(function() {
    var obj = $(this);
    var li_items = $("li", obj);
    $("li", obj).css('background-color', options.bgColor);
    li_items.mouseover(function(){
        $(this).animate({paddingTop: options.tagPaddingTop}, 300);
        $(this).css('background-color', options.bgMoverColor);
        $(this).css('color', options.textColor);
    }).mouseout(function() {
        $(this).animate({paddingTop: options.tagDefaultPaddingTop}, 500);
        $("li",$(this).parent()).css('background-color', options.bgColor);
        $("li",$(this).parent()).css('color', options.textDefaultColor);
    });
});//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
        }
    });
})(jQuery);
</script>
<script type="text/javascript">
$(document).ready(function() {
    $('.menu_wuming_ren').tagdrop({tagPaddingTop: '60px',bgColor: '#B1CCED',bgMoverColor: '#7FB0F0',textColor: '#e0e0e0'});
});//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
</script>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
需要加载js文件,请刷新后看效果。
<ul>
     <li><a href="https://www.wuming.ren">武鸣人一号</a></li>
     <li><a href="https://www.wuming.ren">武鸣人二号</a></li>
     <li><a href="https://www.wuming.ren">武鸣人三号</a></li>
     <li><a href="https://www.wuming.ren">武鸣人四号</a></li>
<li><a href="https://www.wuming.ren">武鸣人五号</a></li>
<li><a href="https://www.wuming.ren">武鸣人六号</a></li>
   </ul>
</body>
</html>


0
0
收藏0
回帖

右上角鼠标感应jquery动感导航菜单弹出特效 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息