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>