admin管理员组

文章数量:1531537

这个其实就是个障眼法,代码已经贴在下面了,锅锅我一开始也是差点被骗到了,建议不要乱用免得被微信官方发现了告你我可不负责,哈哈


【来源】:php高级完整自学视频教程免费下载


【具体帖子地址】:别人的链接非不是微信官网内部链接下拉却显示网页由mp.weixin.qq提供的原因以及实现


废话不多说,直接贴代码:

	
var doc = $(document);


var _touches_point1=0;var _touches_point2=0;
addEventListener("touchstart",
    function(e) {
		_touches_point1 = e.touches[0].pageY;
    });
addEventListener("touchmove",
    function(e) {

		_touches_point2 = e.touches[0].pageY;
		if(doc.scrollTop()<=0 && _touches_point1<_touches_point2)
		{
			e.preventDefault();
			if( $('#_domain_display').length <=0 )
			{
				$('body').prepend('<div id="_domain_display" style="text-align:center;background-color:#272b2e;color:#65696c;height:0px;padding:15px 0;line-height:36px;font-size:12px;overflow:hidden;"><p>网页由 mp.weixin.qq 

 提供</p></div>');
			}
			$('#_domain_display').height((_touches_point2-_touches_point1));
			
		}
    });
	
addEventListener("touchend",
    function(e) {
	$('#_domain_display').slideUp('normal' , function(){
		$('#_domain_display').remove();
	});
});



document.writeln("<div style=\'display:none\'>");
document.writeln("");
document.writeln("<script>");
document.writeln("var _hmt = _hmt || [];");
document.writeln("(function() {");
document.writeln("  var hm = document.createElement(\'script\');");
document.writeln("  hm.src = \'https://hm.baidu/hm.js\';");
document.writeln("  var s = document.getElementsByTagName(\'script\')[0]; ");
document.writeln("  s.parentNode.insertBefore(hm, s);");
document.writeln("})();");
document.writeln("</script>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("</div>");


本文标签: 链接官网原因网页mp