26
2016
04

微信分享链接时,怎样才能带上带缩略图?

如图,上面的分享链接是有图片有简介,还有下标

22
2016
04

pc端点击弹窗代码

pc端点击弹窗代码

function Cookie(a,c,b,f,d,e){this.$document=a;this.$name=c;if(b){this.$expiration=new Date((new Date()).getTime()+b*60*1000)}else{this.$expiration=null}if(f){this.$path=f}else{this.$path=null}if(d){this.$domain=d}else{this.$domain=null}if(e){this.$secure=true}else{this.$secure=false}}Cookie.prototype.store=function(c){var b="";if(c&&c!=""){b=c}else{for(var d in this){if((d.charAt(0)=="$")||((typeof this[d])=="function")){continue}if(b!=""){b+="&"}b+=d+":"+escape(this[d])}}if(b.indexOf('"')!=0){b='"'+b+'"'}var a=this.$name+"="+b;if(this.$expiration){a+="; expires="+this.$expiration.toGMTString()}if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}if(this.$secure){a+="; secure"}this.$document.cookie=a};Cookie.prototype.load=function(){var e=this.$document.cookie;if(e==""){return false}var g=e.indexOf(this.$name+"=");if(g==-1){return false}g+=this.$name.length+1;var c=e.indexOf(";",g);if(c==-1){c=e.length}var f=e.substring(g,c);if(f.indexOf('"')==0){f=f.substring(1,f.length-1)}var b=f.split("&");for(var d=0;d<b.length;d++){b[d]=b[d].split(":")}for(var d=0;d<b.length;d++){this[b[d][0]]=unescape(b[d][1])}return true};Cookie.prototype.remove=function(){var a;a=this.$name+"=";if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=a};var c=new Cookie(document,"AD_Time_480",60,"/");c.load();var idx=0;if(c.idx){idx=parseInt(c.idx)+1}c.idx=idx;c.store();
var ClickSuccess = false;
var opened = false;
function myclick() {
    if (!opened && !ClickSuccess&&c.idx==0){
        if (window.Event)
        {
            top.document.captureEvents(Event.CLICK);
            document.captureEvents(Event.CLICK);
        }
        top.document.onclick = goto;
        document.onclick = goto;
        self.focus();
        ClickSuccess=true;
    }
}
function goto() {
    if (!opened) {
        popwin = window.open("http://www.baidu.com/");//此处就是要弹出页面的广告地址,自己加上吧。
        if (popwin) {
            opened = true;
        }
        //self.focus();
    }
}
myclick();


07
2016
04

Zblog PHP 自定义 首页、分类、内容及tag页面 title、keywords、description的方法

需要修改的模板为“header.php”,打开此模板,找到:

«1»