根据浏览器判断是下载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="data:image/banner23.jpg" style="vertical-align: top; " οnclick="isWeixin();" /></div> | |
<div><img id="shareImg" src="data:image/a2.jpg" οnclick="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" οnclick="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> |
转载于:https://www.cnblogs.com/Ken-Cai/p/7975572.html
根据浏览器判断是下载IOS还是其它的手机安装包相关推荐
- 安卓 app 本地升级下载后自动安装(小米手机安装包解析失败问题)
强制升级: 1.新建服务 package com.jy.mango.project.service; import android.app.DownloadManager; import androi ...
- iOS 平台上常见的安装包有三种,deb、ipa 和 pxl
前言: 目前 iOS 平台上常见的安装包有三种,deb.ipa 和 pxl. 其中 deb 格式是 Debian 系统(包含 Debian 和 Ubuntu )专属安装包格式,配合 APT 软件管理系 ...
- XMind 8 Update 8 Pro 激活教程(亲测可用) 国外官网下载 破解教程(带离线安装包)
Jun 21, 2019 | 资源 - 破解软件(稀缺)资源 - 破解软件(常用) | 1.2k 字 | 4 分钟 文章目录 1. 本博文的简述or解决问题? 2. 下载安装包: 3. 说明: 4 ...
- 如何在MySQL官网上下载32位的解压缩版安装包
如何在MySQL官网上下载32位的解压缩版安装包 介于工作的原因,不能联网安装某些方便快捷的软件包,只能老老实实的下载解压缩版的安装包进行配置使用.所以顺手纪录一下如何在MySQL官网上下载32位的解 ...
- ucweb6.7,S60V1,S60V2,S60V3,S60V5,WINDOWS MOBILE,SP手机安装包下载
ucweb6.7,S60V1,S60V2,S60V3,S60V5,WINDOWS MOBILE,SP手机安装包下载 点击下面的地址下载,文件名是UCWEB.RAR,下载后用WINRAR解压缩,里面有S ...
- android 全套安装包,原神1.1直装版下载-原神1.1完整安装包v1.1安卓版下载_飞翔下载...
原神1.1完整安装包是原神最新迫近的客星版本,游戏里玩家们可以迎来新的角色和剧情内容,体验新的声优和图鉴系统,钟离和达达利亚两位高人气角色登场,还有新的武器可以获取,想要直接体验的小伙伴快来下载吧! ...
- 如何从官网下载 Google Chrome 64位离线安装包
为什么80%的码农都做不了架构师?>>> Google Chrome 已经是许多人的默认浏览器,但由于"你懂的"原因,在线安装基本没有成功过,他自己的自动更 ...
- 如何下载Windows和office官方镜像安装包,及安装激活详细步骤
一.Windows 1.下载最新版Windows10镜像 打开链接https://www.microsoft.com/zh-cn/software-download/windows10/ 苹果电脑: ...
- 下载国外软件慢(例如:Python安装包)
因为工作的时候有同事因为一些国外的软件下载速度慢或者找不到,找我要.感觉到很多人还不知道这个方法,在这里给大家一个好方法. 问题 当我们想要下载一个软件,最好的办法是进入官网进行下载,但是一些国外的软 ...
最新文章
- 力科示波器 matlab,力科周末文章四周年180期合集目录
- 联邦学习 Federated Learning
- q87主板支持cpu型号_网络上那些300多元的微星B365M主板到底是真货假货?价格便宜一半...
- C#LeetCode刷题之#674-最长连续递增序列( Longest Continuous Increasing Subsequence)
- linux 中的MYSQL命令汇总
- Less中的命名空间
- gSLICr: SLIC superpixels at over 250Hz
- python免费教程视频-Python免费视频教程
- jQuery源码学习之六 (jQUery中扩展方法)
- 《从零开始的RPG游戏制作教程》前言
- DOS命令:chkdsk
- 51单片机入门学习 第七天
- 基于Inception v2实现判别mnist手写数据集
- 光通信的最新技术趋势
- 2022年《网络安全法》迎来首修,拟对多处加大处罚力度
- js微信抢红包脚本代码_微信红包算法(js)
- linux基础测试题
- 2008北京地铁线路图
- 【深度学习基础】数字手势识别实验:2.MLP
- 博客搬家 pjblog 到 z-blog