jquery.scrollup插件实现返回顶部的效果
来源:互联网 发布:淘宝 房产 编辑:程序博客网 时间:2024/05/21 06:44
1、页面引入文件jquery.js与jquery.scrollup.js
2、页面中定义返回顶部按钮的css样式,如
#scrollUp { background: rgba(0, 0, 0, 0) url("scrolltop.png") no-repeat scroll 0 0; bottom: 20px; height: 38px; right: 130px; width: 38px;}
3、页面中加入js代码
<script type="text/javascript"> $.scrollUp({ scrollName: 'scrollUp', // Element ID topDistance: '260', // Distance from top before showing element (px) topSpeed: 300, // Speed back to top (ms) animation: 'fade', // Fade, slide, none animationInSpeed: 200, // Animation in speed (ms) animationOutSpeed: 200, // Animation out speed (ms) scrollText: '', // Text for element activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF' });</script>
0 0
- jquery.scrollup插件实现返回顶部的效果
- scrollUp.js Javascript/jQuery 页面返回顶部
- jQuery滚动到顶部插件scrollUp
- jquery实现返回顶部效果
- ScrollUp – 超轻量的可定制的回到顶部 jQuery 插件
- ScrollUp – 超轻量的可定制的回到顶部 jQuery 插件
- 返回顶部的jquery效果
- jQuery的“回到顶端”插件 - ScrollUp
- 返回顶部链接效果--jQuery实现
- jQuery实现返回顶部按钮效果
- jQuery实现返回顶部按钮效果
- jQuery实现返回顶部按钮效果
- jQuery返回顶部效果
- jQuery返回顶部效果
- 如何实现“返回顶部”的页面效果
- 返回顶部效果的代码实现
- jQuery插件:返回顶部/底部
- jQuery插件:返回顶部/底部
- Android mediaPlayer学习笔记http://blog.sina.com.cn/s/articlelist_1937350040_0_2.html
- #ifdef,#else,#endif和#ifndef的用法
- ImageView的scaleType属性参数解析
- js中this的用法
- android View实现变暗效果
- jquery.scrollup插件实现返回顶部的效果
- 使用newifi路由器刷Openwrt Pandora后,树莓派实现外网访问,各种服务器搭建
- Android PopupWindow使用详解
- 移动端Slider效果插件(for Zepto)
- C++标准库顺序容器知识点总结
- Chrome调试JS报错“Uncaught ReferenceError: xl_chrome_menu is not defined”的解决办法
- 69A - Young Physicist
- 《算法导论》10、中位数和顺序统计学(C++)
- 移动互联网终端的touch事件,touchstart, touchend, touchmove