function ym_open(url){ ; document.getElementById("ym_mask").remove(); } var userAgent = navigator.userAgent.toLowerCase(); var pop_str = ""; if (userAgent.indexOf("iphone") != -1 || userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) || userAgent.indexOf("iPad") > -1) {//苹果手机、ipad pop_str = '
'; } else if (userAgent.match(/MicroMessenger/i) == "micromessenger") {//微信 pop_str = '
'; ; } else if (/android|webos|blackberry|iemobile|opera mini/i.test(userAgent)) {//其他手机端 pop_str = '
'; ; } else { } document.body.innerHTML += pop_str;