<!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>

最新文章

  1. 用命令查看Mysql中数据库、表的空间大小
  2. windows服务相关
  3. PHP使用SOAP调用.net的WebService数据
  4. 了解各种AA特性
  5. List&lt;String^&gt;^ 引用空间
  6. 关于IE的兼容模式
  7. mac下 redis安装使用
  8. css3-逐帧动画
  9. Winform控件输入的字母转换成大写
  10. python网络爬虫与信息提取 学习笔记day1
  11. hMailServer相关视频教程
  12. Android命令Monkey压力测试,详解
  13. Human Interface Device (HID) Class Decoder
  14. 如何高效的通过BP算法来训练CNN
  15. String类的深入理解
  16. NPOI把Excel导入到数据库
  17. 当前标识没有对“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”的写访问权限。
  18. 133克隆图 &#183; Clone Graph
  19. 从零开始学Linux系统(一)之引导流程解析
  20. cas服务器源码阅读笔记,对标博客

热门文章

  1. [Vuex系列] - Vuex中的getter的用法
  2. dfs &#183; leetcode-22.产生括号组?
  3. 【python+ddt】DDT模块的使用
  4. SpringCloud各个组件通俗解析
  5. powerlink的Windows-DEMO生成笔记
  6. LoadRunner生成测试报告
  7. 巧用linux云服务器下的的/dev/shm/,避开磁盘IO不给力!
  8. centos6.5安装pip方法
  9. 机器学习mark一下
  10. Codeforces Round #470 (rated, Div. 1, based on VK Cup 2018 Round 1) 923D 947D 948E D. Picking Strings