欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

仿淘宝 智能跟随菜单提示栏 智能浮动的菜单

程序员文章站 2022-04-27 18:36:38
...

仿淘宝 智能跟随菜单提示栏 智能浮动的菜单
            
    
    博客分类: JavaScript/Jquery jquerymenucsshtmljs 

 

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>smartFloat页面滚动智能层自动跟随插件 Demo</title>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript"> 
$.fn.smartFloat = function() {
	var position = function(element) {
		var top = element.position().top, pos = element.css("position");
		$(window).scroll(function() {
			var scrolls = $(this).scrollTop();
			if (scrolls > top) {
				if (window.XMLHttpRequest) {
					element.css({
						position: "fixed",
						top: 0
					});	
				} else {
					element.css({
						top: scrolls
					});	
				}
			}else {
				element.css({
					position: pos,
					top: top
				});	
			}
		});
};
	return $(this).each(function() {
		position($(this));						 
	});
};
//绑定
</script>
<script>
$(document).ready(function(){
	$("#nav_left_layout").smartFloat();
	});
</script>
</head>
<body id="introduction">
<div id="page">
some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>
	<div id="container" class="content clearfix">
<!---->
		<div id="nav_left_layout"><a title="仿淘宝默认排序搜索框" href="http://www.luidea.com/" target="_blank"><img src="images/searchbox.gif" width="760" height="30" alt="仿淘宝默认排序搜索框" /></a>
        
        </div>
		some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br><br>some test some testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome testsome test
<br>
		<div style="height:900px;overflow:hidden;"></div>
  </div>   
<!--广告-->
 <div id="ad6" style="padding:30px 0;margin:0 auto;width:728px;"> <script type="text/javascript" src="css/topad.js"></script> </div>
 </div> 
<!--//广告-->  
	<p class="credit">编辑整理: <a href="http://www.luidea.com" target="_blank">集思网</a></p>
</div>
    <div id="footer">
    	<div id="footer_inner">
        <h2>smartFloat页面滚动智能层自动跟随插件  </h2>
        <a class="tzine" href="http://www.luidea.com/" target="_blank">返回</a>
    	</div>
    </div>  
</body>
</html>
 

 

 

 

 

  • 仿淘宝 智能跟随菜单提示栏 智能浮动的菜单
            
    
    博客分类: JavaScript/Jquery jquerymenucsshtmljs 
  • 大小: 553.5 KB