91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

JS如何實現在微信中調用外部瀏覽器打開指定鏈接

發布時間:2020-03-02 18:04:16 來源:網絡 閱讀:396 作者:在我心里沒 欄目:移動開發

使用方法,復制以下貼到index.php 頂部就可以了.
場景 比如網頁包含視頻播放??在QQ\WX打開QQ\WX直接調用自己的播放器播放,而且播放完成還有AD推送,非常惡心,所以有了以下代碼有亂碼的話說明你網頁是GBK??自行轉換下


JS如何實現在微信中調用外部瀏覽器打開指定鏈接

<?php
function?qqwx(){?
????if?(?strpos($_SERVER['HTTP_USER_AGENT'],?'MicroMessenger')?!==?false?)?{
echo?'<!DOCTYPE?html>
<html>
??<head>
??????<meta?http-equiv="Content-Language"?content="zh-CN">
????<meta?http-equiv="content-type"?content="text/html;?charset=utf-8"?/>
????<meta?id="viewport"?name="viewport"?content="width=device-width,?initial-scale=1.0,maximum-scale=1.0,?user-scalable=0"?/>
????<meta?content="telephone=no"?name="format-detection"?/>
?
????<title>提示</title>
????
????<style>
????????html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif;font-size:16px}body,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,fieldset,textarea{margin:0}fieldset,legend,textarea,input,button{padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;*font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif}ul,ol{padding-left:0;list-style-type:none;list-style-position:inside}a?img,fieldset{border:0}a{text-decoration:none}
?
????????body{
????????????color:#222;
????????????font-size:?12px;
????????????padding:?120px?15px?20px;
????????????text-align:center;
????????}
????????h4{?
????????????font-size:?18px;?
????????????font-weight:?normal;
????????????margin-bottom:?13px;
????????}
????????.url{
????????????padding:?5px?0;
????????????word-break:break-all;
????????}
????</style>
??</head>
??<body?url="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
????<div?class="">
????????<h4>請長按網址復制后使用瀏覽器訪問</h4>
????????<div?id="url"?class="url"></div>
????</div>
????<script>
????????var?text?=?document.createTextNode(document.body.getAttribute("url").replace(/&/g,?"&"));
????????document.getElementById("url").appendChild(text);
????</script>
??</body>
</html>';
exit();?????}????
????????if?(?strpos($_SERVER['HTTP_USER_AGENT'],?'QQ/')?!==?false?)?{
echo?'<!DOCTYPE?html>
<html>
??<head>
??
????<script?src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
??<script?type="text/javascript">?mqq.ui.openUrl({?target:?2,url:?"http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'"});?</script>
????<meta?http-equiv="Content-Language"?content="zh-CN">
????<meta?http-equiv="content-type"?content="text/html;?charset=utf-8"?/>
????<meta?id="viewport"?name="viewport"?content="width=device-width,?initial-scale=1.0,maximum-scale=1.0,?user-scalable=0"?/>
????<meta?content="telephone=no"?name="format-detection"?/>
?
????<title>提示</title>
????
????<style>
????????html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif;font-size:16px}body,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,fieldset,textarea{margin:0}fieldset,legend,textarea,input,button{padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;*font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif}ul,ol{padding-left:0;list-style-type:none;list-style-position:inside}a?img,fieldset{border:0}a{text-decoration:none}
?
????????body{
????????????color:#222;
????????????font-size:?12px;
????????????padding:?120px?15px?20px;
????????????text-align:center;
????????}
????????h4{?
????????????font-size:?18px;?
????????????font-weight:?normal;
????????????margin-bottom:?13px;
????????}
????????.url{
????????????padding:?5px?0;
????????????word-break:break-all;
????????}
????</style>
??</head>
??<body?url="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
????<div?class="">
????????<h4>如需瀏覽,請長按網址復制后使用瀏覽器訪問</h4>
????????<div?id="url"?class="url"></div>
????</div>
????<script>
????????var?text?=?document.createTextNode(document.body.getAttribute("url").replace(/&/g,?"&"));
????????document.getElementById("url").appendChild(text);
????</script>
??</body>
</html>';
exit();
????}??
}
qqwx();
?<?php
function?qqwx(){?
????if?(?strpos($_SERVER['HTTP_USER_AGENT'],?'MicroMessenger')?!==?false?)?{
echo?'<!DOCTYPE?html>
<html>
??<head>
??????<meta?http-equiv="Content-Language"?content="zh-CN">
????<meta?http-equiv="content-type"?content="text/html;?charset=utf-8"?/>
????<meta?id="viewport"?name="viewport"?content="width=device-width,?initial-scale=1.0,maximum-scale=1.0,?user-scalable=0"?/>
????<meta?content="telephone=no"?name="format-detection"?/>
?
????<title>提示</title>
????
????<style>
????????html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif;font-size:16px}body,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,fieldset,textarea{margin:0}fieldset,legend,textarea,input,button{padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;*font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif}ul,ol{padding-left:0;list-style-type:none;list-style-position:inside}a?img,fieldset{border:0}a{text-decoration:none}
?
????????body{
????????????color:#222;
????????????font-size:?12px;
????????????padding:?120px?15px?20px;
????????????text-align:center;
????????}
????????h4{?
????????????font-size:?18px;?
????????????font-weight:?normal;
????????????margin-bottom:?13px;
????????}
????????.url{
????????????padding:?5px?0;
????????????word-break:break-all;
????????}
????</style>
??</head>
??<body?url="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
????<div?class="">
????????<h4>請長按網址復制后使用瀏覽器訪問</h4>
????????<div?id="url"?class="url"></div>
????</div>
????<script>
????????var?text?=?document.createTextNode(document.body.getAttribute("url").replace(/&/g,?"&"));
????????document.getElementById("url").appendChild(text);
????</script>
??</body>
</html>';
exit();?????}????
????????if?(?strpos($_SERVER['HTTP_USER_AGENT'],?'QQ/')?!==?false?)?{
echo?'<!DOCTYPE?html>
<html>
??<head>
??
????<script?src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
??<script?type="text/javascript">?mqq.ui.openUrl({?target:?2,url:?"http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'"});?</script>
????<meta?http-equiv="Content-Language"?content="zh-CN">
????<meta?http-equiv="content-type"?content="text/html;?charset=utf-8"?/>
????<meta?id="viewport"?name="viewport"?content="width=device-width,?initial-scale=1.0,maximum-scale=1.0,?user-scalable=0"?/>
????<meta?content="telephone=no"?name="format-detection"?/>
?
????<title>提示</title>
????
????<style>
????????html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif;font-size:16px}body,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,fieldset,textarea{margin:0}fieldset,legend,textarea,input,button{padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;*font-family:"Helvetica?Neue",Helvetica,Arial,sans-serif}ul,ol{padding-left:0;list-style-type:none;list-style-position:inside}a?img,fieldset{border:0}a{text-decoration:none}
?
????????body{
????????????color:#222;
????????????font-size:?12px;
????????????padding:?120px?15px?20px;
????????????text-align:center;
????????}
????????h4{?
????????????font-size:?18px;?
????????????font-weight:?normal;
????????????margin-bottom:?13px;
????????}
????????.url{
????????????padding:?5px?0;
????????????word-break:break-all;
????????}
????</style>
??</head>
??<body?url="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
????<div?class="">
????????<h4>如需瀏覽,請長按網址復制后使用瀏覽器訪問</h4>
????????<div?id="url"?class="url"></div>
????</div>
????<script>
????????var?text?=?document.createTextNode(document.body.getAttribute("url").replace(/&/g,?"&"));
????????document.getElementById("url").appendChild(text);
????</script>
??</body>
</html>';
exit();
????}??
}
qqwx();
<http://www.getinstall.cn/>



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

海宁市| 奉贤区| 临海市| 会东县| 东海县| 乌鲁木齐县| 白河县| 合阳县| 习水县| 于田县| 永川市| 三河市| 丰都县| 新蔡县| 靖安县| 大同市| 南江县| 忻城县| 紫金县| 浦城县| 中超| 隆子县| 江油市| 呼和浩特市| 卓尼县| 浙江省| 玉林市| 景谷| 永吉县| 凭祥市| 克拉玛依市| 龙岩市| 安达市| 新河县| 祁门县| 常州市| 定兴县| 荥经县| 宁远县| 湖南省| 新化县|