jQuery自定义手机触屏函数

来源:https://www.sucaihuo.com/js/515.html 2015-09-27 04:26浏览(1152) 收藏

分享一个可以自定义手机触屏滑动事件的方法,注意jQuery版本。
jQuery自定义手机触屏函数
分类:其它特效 > jQuery插件 难易:初级
查看演示 下载资源 下载积分: 20 积分
<div class="swip_arrow" id="swip_arrow"></div>
.swip_arrow{
            background: url("images/arrow_top.gif") no-repeat scroll 0 0; height: 3rem; width:5rem;position: fixed;left:46%;bottom:0
}
<script type="text/javascript" src="jquery.touchSwipe.min.js"></script>
$("#swip_arrow").swipe({
    swipeStatus: function(event, phase, direction, distance, duration, fingerCount) {
        location.href = 'http://www.sucaihuo.com';
    }
});
标签: 滑动触屏
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2