js页面滚动浮动层智能定位(jQuery)实现
来源:互联网 发布:邱一平麟龙软件 编辑:程序博客网 时间:2024/05/06 03:46
如有不明白的地方欢迎加QQ群14670545 探讨
///js页面滚动浮动层智能定位(jQuery)实现///调用:$("#popfloat").smartFloat($("#mainInfo").width() + 21);$.fn.smartFloat = function(width_p) { 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", width: width_p, top: 0 }); } else { element.css({ top: scrolls }); } } else { element.css({ position: "", //absolute top: top }); } }); }; return $(this).each(function() { position($(this)); });};
- js页面滚动浮动层智能定位(jQuery)实现
- js页面滚动浮动层智能定位(jQuery)实例页面
- jQuery实现页面滚动时层智能浮动定位
- jQuery实现页面滚动时层智能浮动定位
- 页面滚动时层智能浮动定位,jQuery/MooTools实现
- jQuery实现页面滚动时层智能浮动定位
- JQuery页面滚动浮动层智能定位
- js页面滚动时层智能浮动定位实现
- js页面滚动时层智能浮动定位实现(jQuery/MooTools)
- js实现滚动时层智能浮动定位
- jQuery实现浮动层跟随页面滚动效果
- jQuery实现页面滚动时元素的智能定位
- jQuery浮动层跟随页面滚动
- jQuery实现页面元素智能定位
- jquery浮动定位层导航描点上下滚动的浮动导航
- jQuery实现浮动层
- JQuery实现的页面滚动时浮动窗口控件
- js 右侧浮动层(跟随滚动)
- Vim 使用技巧
- 调整内核驱动加载的顺序
- 最为关心的问题,hbase查询一条数据的过程.
- C++随机树生成算法
- Activity的4种launchMode
- js页面滚动浮动层智能定位(jQuery)实现
- Linux 网络栈剖析
- 获取应用程序当前路径
- HTML5实现手机摇一摇的功能
- VS2010设置VC目录
- description方法重载问题
- C中函数类型的使用
- VMware 相关
- Android项目中快速删除没用到的文件(Android Lint Checks),使你的应用更健壮