bootstrap 上下页滚动
2024-10-06 17:34:44
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/jquery.touchSwipe.min.js"></script>
<style>
#screen1{
background-color: #ddd;
display: block;
position: absolute;
width: 100%;
height: 100%;
}
#screen2{
display: none;
position: absolute;
background-color: pink;
width: 100%;
height: 100%;
}
#screen3{
display: none;
position: absolute;
background-color: #00f;
width: 100%;
height: 100%;
}
</style>
</head>
<body id="orientation">
<div class="screen1" id="screen1" > </div>
<div class="screen2" id="screen2"> </div>
<div class="screen3" id="screen3" > </div>
<script>
$(function () {
function switcher(id, nextid, xiaid) {
$(id).swipe({
swipe: function (event, direction, distance, duration, fingerCount) {
if (direction == "up") {
$(nextid).show();
$(this).hide();
}
else if (direction == "down") {
$(xiaid).show();
$(this).hide();
}
}
}
);
}
$("#screen1").swipe({
swipe: function (event, direction, distance, duration, fingerCount) {
if (direction == "up") {
$("#screen2").show();
$("#screen1").hide();
}
}
}
)
switcher("#screen2", "#screen3", "#screen1");
$("#screen3").swipe({
swipe: function (event, direction, distance, duration, fingerCount) {
if (direction == "down") {
$("#screen3").hide();
$("#screen2").show();
}
}
}
);
});
</script>
</body>
</html>
<script>
var c = "http://oss.tunji99.com/tunji-dev/20191107/14d11fa494a947539606aa9b94ddf818.png!q_max3,http://oss.tunji99.com/tunji-dev/20191107/14d11fa494a947539606aa9b94ddf818.png!q_max3,";
var e = c.search("http://oss.tunji99.com/tunji-dev/20191107/14d11fa494a947539606aa9b94ddf818.png!q_max3,","");
console.log(e);
</script>
最新文章
- 用命令查看Mysql中数据库、表的空间大小
- windows服务相关
- PHP使用SOAP调用.net的WebService数据
- 了解各种AA特性
- List<;String^>;^ 引用空间
- 关于IE的兼容模式
- mac下 redis安装使用
- css3-逐帧动画
- Winform控件输入的字母转换成大写
- python网络爬虫与信息提取 学习笔记day1
- hMailServer相关视频教程
- Android命令Monkey压力测试,详解
- Human Interface Device (HID) Class Decoder
- 如何高效的通过BP算法来训练CNN
- String类的深入理解
- NPOI把Excel导入到数据库
- 当前标识没有对“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”的写访问权限。
- 133克隆图 &#183; Clone Graph
- 从零开始学Linux系统(一)之引导流程解析
- cas服务器源码阅读笔记,对标博客
热门文章
- [Vuex系列] - Vuex中的getter的用法
- dfs &#183; leetcode-22.产生括号组?
- 【python+ddt】DDT模块的使用
- SpringCloud各个组件通俗解析
- powerlink的Windows-DEMO生成笔记
- LoadRunner生成测试报告
- 巧用linux云服务器下的的/dev/shm/,避开磁盘IO不给力!
- centos6.5安装pip方法
- 机器学习mark一下
- Codeforces Round #470 (rated, Div. 1, based on VK Cup 2018 Round 1) 923D 947D 948E D. Picking Strings