首页 > Web开发 > 详细

jQuery回到顶部插件jQuery GoUp

时间:2016-01-01 09:24:05      阅读:136      评论:0      收藏:0      [点我收藏+]

插件描写叙述

jQuery GoUp!是一个简单的jQuery插件,让你的网页用户直接回到顶部。


用法很easy

引用jquery库和jquery.goup.min.js到你的页面

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.goup.min.js"></script>

在调用下插件就OK了

<script type="text/javascript">
        $(document).ready(function () {
            $.goup({
                trigger: 100,
                bottomOffset: 20,       //距底部偏移量 
                locationOffset: 30,     //距右部偏移量
                title: ‘返回顶部‘,
                titleAsText: true       //是否显示title
            });
        });
</script>

效果如图:

技术分享


jQuery GoUp下载地址:http://download.csdn.net/detail/itmyhome/7714581



作者:itmyhome




jQuery回到顶部插件jQuery GoUp

原文:http://www.cnblogs.com/bhlsheji/p/5092999.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!