jQuery页面边缘固定的导航菜单

jQuery页面边缘固定的导航菜单

<!DOCTYPEhtml>
<html>
<head>
<!-- 效果:http://hovertree.com/texiao/jquery/52/ -->
<metahttp-equiv="Content-Type"content="text/html; charset=utf-8" />
<title>jQuery页面侧边固定悬浮导航代码(带关闭按钮) - 何问起</title><basetarget="_blank"/>
<linkhref="http://hovertree.com/texiao/jquery/52/css/style.css"rel="stylesheet"type="text/css"/>
<scripttype="text/javascript"src="http://down.hovertree.com/jquery/jquery-1.12.3.min.js"></script>
<scripttype="text/javascript"src="http://hovertree.com/texiao/jquery/52/js/jquery.fixed.js"></script>
<scripttype="text/javascript">
$(document).ready(function(){
 
var _code = '<divid="hovertreefixed"><dl><dd><ahref="http://hovertree.com/tool/ewm/"class="web">页游</a></dd><dd><ahref="http://hovertree.com/h/bjaf/4b0prpjw.htm"class="mb">手游</a></dd><dd><ahref="http://hovertree.com/h/bjaf/jsax6stf.htm"target="_blank"class="dj">动漫</a></dd><dd><ahref="http://hovertree.com/h/bjaf/6sm1esjw.htm"target="_blank"class="mh">漫画</a></dd><dd><ahref="http://hovertree.com"target="_blank"class="dh">动画</a></dd><dd><ahref="http://hovertree.com/h/bjaf/kqud99m6.htm"class="pk165">小说</a></dd><dd><ahref="http://hovertree.com/h/bjaf/ati6k7yk.htm"class="hwq2">社区</a></dd><dt><ahref="javascript:void(0);"class="close"></a></dt></dl></div>';
 
$(_code).hide().appendTo("body").fixed({x:0,y:0}).fadeIn(500);
 
$("#hover"+"treefixed dt").click(function(){
var _left = $("#hovertreefixed").offset().left;
if(_left>=0){
$("#hovertreefixed").animate({left:-44},300,'swing',function(){
$("#hovertreefixed dt a.close").hide().width('68px').fadeIn(500);
});
} else {
$("#hovertre"+"efixed dt a.close").width('44px');
$("#hovertreefixed").animate({left:0},300,'swing',function(){
});
}
});
 
});
</script>
<style>a{color:silver;}</style>
</head>
<body>
<divstyle="text-align:center;"><ahref="http://hovertree.com/h/bjaf/nqnggxul.htm">下载</a> <ahref="http://hovertree.com/">首页</a>
<ahref="http://hovertree.com/texiao/">特效</a>
</div>
<center><h1>jQuery页面侧边固定悬浮导航代码(带关闭按钮)</h1></center>
<divstyle="height:1500px;"></div>
</body>
</html>



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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值