I am slide content. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
John DoeCEO
I am slide content. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
John DoeCEO
I am slide content. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
John DoeCEO
.wxtip {
background: rgba(0,0,0,0.8);
text-align: right;
position: fixed;
left:0;
top: 0;
width: 100%;
height: 100%;
z-index: 998;
display: none;
}
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
function weixinTip(ele){ //针对微信弹出提示
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
if(isWeixin){
ele.onclick=function(e){
window.event? window.event.returnValue = false : e.preventDefault();
document.getElementById(‘JweixinTip’).style.display=’block’;
}
document.getElementById(‘JweixinTip’).onclick=function(){
this.style.display=’none’;
}
}
}
———————
作者:仙剑冲锋
来源:CSDN
原文:https://blog.csdn.net/hjc273928/article/details/85272387
版权声明:本文为博主原创文章,转载请附上博文链接!
联系我们
全国客户服务热线:400-188-1065
融硅思创(北京)技术研发中心
地址:北京市石景山区实兴大街30号院
中关村科技园石景山园区6号楼七层
电话:+86 10-5755 1116
传真:+86 10-5755 1235
邮编:100144
融硅思创(沈阳)产业化研发中心
地址:辽宁省沈阳市浑南区沈本大街861-10号
沈阳国际软件园E10五层
电话:+86 24-2471 9988
传真:+86 24-2393 3682
邮编:110167
版权所有© 融硅思创(北京)科技有限公司 版权声明
<div class="wxtip" id="JweixinTip">
<img src="./images/wxtip.png" />
</div>
.wxtip {
background: rgba(0,0,0,0.8);
text-align: right;
position: fixed;
left:0;
top: 0;
width: 100%;
height: 100%;
z-index: 998;
display: none;
}
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
function weixinTip(ele){ //针对微信弹出提示
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
if(isWeixin){
ele.onclick=function(e){
window.event? window.event.returnValue = false : e.preventDefault();
document.getElementById('JweixinTip').style.display='block';
}
document.getElementById('JweixinTip').onclick=function(){
this.style.display='none';
}
}
}
<script>
var btnAndroid = document.getElementById('btnAndroid');//Android下载
weixinTip(btnAndroid);
var btnIOS = document.getElementById('btnIOS'); //IOS下载
weixinTip(btnIOS);
</script/>
.wxtip {
background: rgba(0,0,0,0.8);
text-align: right;
position: fixed;
left:0;
top: 0;
width: 100%;
height: 100%;
z-index: 998;
display: none;
}
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
function weixinTip(ele){ //针对微信弹出提示
var ua = navigator.userAgent;
var isWeixin = !!/MicroMessenger/i.test(ua);
if(isWeixin){
ele.onclick=function(e){
window.event? window.event.returnValue = false : e.preventDefault();
document.getElementById(‘JweixinTip’).style.display=’block’;
}
document.getElementById(‘JweixinTip’).onclick=function(){
this.style.display=’none’;
}
}
}