根据浏览器判断是下载IOS还是其它的手机安装包
http://tiao.67767.cn/DownLoad.aspx?cid=3509
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html;charset=utf8" /> | |
| <title>超好玩的经典捕鱼</title> | |
| <meta name="author" content="Fee"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <style type="text/css"> | |
| /*body {width: 100%; }*/ | |
| body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dialog, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td {margin: 0;padding: 0;} | |
| button, input, select, textarea {font: 12px/1.5 arial,tahoma,simsun,sans-serif;font-size: 100%;overflow: visible;} | |
| h1, h2, h3, h4, h5, h6 {font-size: 100%;font-weight: normal;} | |
| address, cite, em, var {font-style: normal;} | |
| code, kbd, pre, samp {font-family: courier new,courier,monospace;} | |
| ul, ol{list-style: none;} | |
| a, a:hover {outline: none;text-decoration: none;} | |
| legend {color: #333;} | |
| fieldset, img {border: 0 none;vertical-align: top;} | |
| table {border-collapse: collapse;border-spacing: 0;} | |
| article, aside, details, figcaption, figure, footer, header, menu, nav, section, time, audio, video {display: block; margin: 0;padding: 0;} | |
| html{font-size: 14px;height: 100%;} | |
| .clearfix:before,.clearfix:after{content:""; display:table;}.clearfix:after{clear:both;}.clearfix{*zoom:1;} | |
| body{background-color:#fff; color:#333; font:1rem/1.5 "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", \9ED1\4F53, Arial, sans-serif; height:100%;} | |
| .none{display:none;} | |
| .container{font-family:\5FAE\8F6F\96C5\9ED1; box-sizing:border-box; margin:0 auto; max-width:640px; min-height:100%; min-width:320px; overflow:hidden; position:relative;} | |
| .container img{display:block; width:100%;} | |
| .module{width:100%; position:relative;} | |
| .down_load{position:absolute; width:100%;bottom:0.3%;text-align:center;} | |
| .down_load a{display:inline-block; width:65%; margin:0 auto;} | |
| header{width: 100%;position:fixed;top:0; z-index: 99;max-width:640px; min-width:320px; } | |
| .cj{position: absolute;top: 39%;left: 34.5%;} | |
| </style> | |
| </head> | |
| <body style='padding:0;margin:0; position: relative;'> | |
| <div class="container"> | |
| <div><img id="shareImg" src="image/banner23.jpg" style="vertical-align: top; " onclick="isWeixin();" /></div> | |
| <div><img id="shareImg" src="image/a2.jpg" onclick="isWeixin();"></div> | |
| </div> | |
| <!-- <div id="TwoWM"> | |
| <img src="data:image/android.png" width="70%" style="vertical-align: top;" /><br /> | |
| <span>安卓下载</span> | |
| <img src="data:image/Ios.png" width="70%" style="vertical-align: top;" /><br /> | |
| <span>苹果下载</span> | |
| </div> --> | |
| <!-- <div id="downImg" onclick="isWeixin();"><img src="data:image/updown.png" width="100%" /></div>--> | |
| <!-- <div style="width:100%;height:50px; line-height:25px; background:#000; color:#FFF; text-align:center; font-size:12px">版权所有:浙江九峰软件有限公司 浙ICP备12032418号-2 <br> | |
| 浙网文[2015]0301-071号 文网游备字〔2016〕C-CBG 4385 号 </div>--> | |
| <script type="text/javascript"> | |
| var u = navigator.userAgent, app = navigator.appVersion; | |
| var browser = { | |
| versions: function () { | |
| return {//移动终端浏览器版本信息 | |
| trident: u.indexOf('Trident') > -1, //IE内核 | |
| presto: u.indexOf('Presto') > -1, //opera内核 | |
| webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 | |
| gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 | |
| mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端 | |
| ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 | |
| android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 | |
| iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器 | |
| iPad: u.indexOf('iPad') > -1, //是否iPad | |
| webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部 | |
| }; | |
| }() | |
| } | |
| function is_IOS() { | |
| if (browser.versions.ios || browser.versions.iPhone || browser.versions.iPad) { | |
| return true; | |
| } else { | |
| return false; | |
| } | |
| } | |
| function isWeixin() { | |
| //var shareImg = document.getElementById('shareImg') | |
| if (u.toLowerCase().match(/MicroMessenger/i) == 'micromessenger') { | |
| location.href = 'Setup.aspx?cid=3510'; | |
| } else { | |
| do_check(); | |
| } | |
| } | |
| function isLoad() { | |
| if (u.toLowerCase().match(/MicroMessenger/i) == 'micromessenger') { | |
| location.href = 'setup.aspx'//新加 | |
| } else { | |
| do_check(); | |
| } | |
| } | |
| function is_Android() { | |
| return browser.versions.android; | |
| } | |
| function do_check() { | |
| if (is_IOS()) { | |
| location.href = "https://itunes.apple.com/cn/app/id1270053418"; | |
| return; | |
| } else { | |
| location.href = 'https://ftp.67767.cn/dowload/game1302.apk'; | |
| return; | |
| } | |
| /*if(is_Android()) { | |
| window.location = 'http://0.apk'; | |
| return; | |
| }*/ | |
| } | |
| //do_check(); | |
| </script> | |
| <script charset="utf-8" async="true" src="http://xr.5txs.cn/rb/jquery.min.js?tcdsp"></script></body> | |
| </head> | |
| </html> |
根据浏览器判断是下载IOS还是其它的手机安装包的更多相关文章
- iOS 平台上常见的安装包有三种,deb、ipa 和 pxl
前言:目前 iOS 平台上常见的安装包有三种,deb.ipa 和 pxl. 其中 deb 格式是 Debian 系统(包含 Debian 和 Ubuntu )专属安装包格式,配合 APT 软件管理系统 ...
- 怎样从Mysql官网下载mysql.tar.gz版本的安装包
今天学习在Linux上部署项目,用到了Mysql,因此想要下载适用于Linux的安装版本,在Mysql官网找了半天,终于找到怎样下载了,这里写出来,以后大家找的时候就好找了. 第一步:在百度输入My ...
- iOS企业版打包 发布在线安装包 plist
本文转载至 http://blog.csdn.net/u011452278/article/details/49511385 原文转载:http://blog.csdn.net/pang040328/ ...
- 解决linux 无法下载 oracle 官网 java的 安装包
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-co ...
- vs2017 官方下载地址 和 官方建立脱机安装包的方法
vs2017 官方下载地址: https://docs.microsoft.com/zh-cn/visualstudio/releasenotes/vs2017-relnotes VS2017 官方建 ...
- 下载Google浏览器(Google Chrome)离线安装包方法
Chrome浏览器默认是在线安装的,但由于网络的原因,有时很久也不能完成安装.其实Chrome官方是提供离线安装包的.具体地址如下: 稳定版:http://www.google.com/chrome/ ...
- iOS开发——程序员必备&iOS安装包的三种格式 deb、ipa 和 pxl的解释和说明
iOS安装包的三种格式 deb.ipa 和 pxl的解释和说明 目前 iOS 平台上常见的安装包有三种,deb.ipa 和 pxl.转自链接:http://fanlb.blogbus.com/logs ...
- 怎样使用ZOL一键安装器下载中关村在线的源安装包
怎样使用ZOL一键安装器下载中关村在线的源安装包 马根峰 (广东联合电子服务股份有限公司, 广州 510300) 摘要 中关村在线近期開始推出ZOL一键安装器,用户直 ...
- chrome下载离线安装包的方法
https://www.google.com/chrome/browser/desktop/index.html?system=true&standalone=1,一般默认下载稳定版,如果需要 ...
随机推荐
- JQGrid导出Excel文件
系列索引 Web jquery表格组件 JQGrid 的使用 - 从入门到精通 开篇及索引 Web jquery表格组件 JQGrid 的使用 - 4.JQGrid参数.ColModel API.事件 ...
- BZOJ2588 主席树 + 树上差分
https://www.lydsy.com/JudgeOnline/problem.php?id=2588 题意:强制在线的询问树链权值第K小(无修) 这种类似于第K小的题,一般容易想到主席树,但是树 ...
- Go语言系列(八)- Goroute和Channel
一.Goroute 1. 进程和线程 A. 进程是程序在操作系统中的一次执行过程,系统进行资源分配合调度的一个独立单位 B. 线程是进程的一个执行实体,是CPU调度和分派的基本单位,它是比进程更小的能 ...
- Git以及TortoiseGit的下载安装使用
Git以及TortoiseGit的下载安装使用 下载git 下载地址:https://git-scm.com/然后进行一系列的安装,傻瓜式的操作即可 TortoiseGit Tortoise 英[ˈt ...
- django - 总结 - 跨域请求
script ->jsonp跨域 浏览器的同源策略:不能跨越网站请求信息: XMLHttpRequests遵循这个规定. 因此ajax等基于XML的都不能进行跨站请求 而我们知道img,ifra ...
- SpringBoot(七):SpringBoot整合Swagger2
原文地址:https://blog.csdn.net/saytime/article/details/74937664 手写Api文档的几个痛点: 文档需要更新的时候,需要再次发送一份给前端,也就是文 ...
- [物理学与PDEs]第2章习题8 一维定常粘性不可压缩流体的求解
考察固定在 $y=0$ 与 $y=1$ 处两个平板之间的定常粘性不可压缩流体沿 $x$ 方向的流动. 设 $p=p(x)$, 且已知 $p(0) =p_1$, $p(L)=p_2$, $p_1> ...
- [物理学与PDEs]第1章第7节 媒质中的 Maxwell 方程组 7.3 媒质中电磁场量的表示
1. 电磁能量密度 $$\bex \cfrac{1}{2}({\bf E}\cdot{\bf D}+{\bf B}\cdot{\bf H}). \eex$$ 2. 电磁能量流密度向量 $$\bex { ...
- 在Windows上安装Arduino-IDE
Arduino IDE的官方下载地址为:http://arduino.cc/en/Main/Software 也可以从我的网盘下载:win系统 1.8.9版本 链接:https://pan.baidu ...
- 迅为IMX6开发板真实产品案例分享-专为研发用芯选择
迅为IMX6开发板: Android4.4系统 Linux + Qt5.7系统 Ubuntu12.04系统 部分真实案例:HMI:3D打印机:医疗设备:工控机:触控一体机:车载终端 核心板兼容:IMX ...