仿淘宝 智能跟随菜单提示栏 智能浮动的菜单
程序员文章站
2022-04-27 18:36:38
...
<!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>
上一篇: Sizzle简介
下一篇: 魅族战疫服务上线:一站式防疫、购物、售后