根据浏览器判断是下载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,一般默认下载稳定版,如果需要 ...
 
随机推荐
- 2017-12-19python全栈9期第四天第二节之列表的增删查改之删除的pop和del和remove和clear
			
#!/user/bin/python# -*- coding:utf-8 -*-li = ['zs','ls','ww','zl']# name = li.pop(1) #按索引位置删除有返回值# n ...
 - go 的匿名函数和闭包
			
匿名函数 匿名函数是指不需要定义函数名的一种函数实现方式. 在Go语言中,函数可以像普通变量一样被传递或使用,这与C语言的回调函数比较类似.不同的是,Go语言支持随时在代码里定义匿名函数. 匿名函数由 ...
 - Connection to Oracle failed. [66000][12505] Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor .
			
我安装了Oracle数据库,默认的数据库用户名是system,密码口令是安装过程中你自己设置的.可以先使用命令框,输入 sqlplus system; 然后再输入密码即可. 然后我的数据库连接工具使用 ...
 - DirectX11 With Windows SDK--11 混合状态与光栅化状态
			
前言 虽然这一部分的内容主要偏向于混合(Blending),但这里还需提及一下,关于渲染管线可以绑定的状态主要有如下四种: 光栅化状态(光栅化阶段) 采样器状态(像素着色阶段) 混合状态(输出合并阶段 ...
 - Teamviewer远程ssh命令行更改密码启动
			
Teamviewer远程ssh命令行更改密码启动 设置密码 $ sudo teamviewer passwd [NewPasswd ] 查看teamviewer信息 $ teamviewer info ...
 - Spring Cloud使用样例
			
Spring Cloud Demo 项目地址:https://github.com/hackyoMa/spring-cloud-demo 组件 基于Spring Boot 2.0.4.Spring C ...
 - Linux输入法问题
			
本篇博文简单介绍一下介绍Linux输入相关问题及解决方案 关于Invalid UTF-8参见https://www.baidu.com/link?url=QDh2Fa1uJcmyiaKZBzAFkNn ...
 - vue安装scss,并且全局引入
			
在写vue的css样式时,觉得需要css预处理器让自己的css更加简洁.适应性更强.可读性更佳,更易于代码的维护,于是在vue-cli脚手架采用scss.写过的人都知道,每写一个.vue文件都要在st ...
 - pow()函数结果强制转化为int造成误差的分析
			
开发环境:codeblocks,编译器gcc 在计算102时调用pow(10, 2),再强制类型转换为int类型后输出: printf(,)); 得到的结果却是:99 这是因为 double pow( ...
 - Encode and Decode TinyURL
			
TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/desi ...