2013年9月15日 星期日

保持聯絡加訪客留言欄

(上次唔小心DELETE左)

呢個BLOG係為奶茶而設,所以唔記得開新GMAIL ACCOUNT,所以用左我個EMAIL!
GOOGLE俾YAHOO麻煩,想張所有野聯系在一起,所以有GOOGLE+出現,而GOOGLE+有D 似 FACEBOOK,但BLOG還BLOG所以我會少用GOOGLE+!
所以你地想同我聯系記住開啟你地個追蹤!首先開版面配置!
再按新增小工具!




然後選擇左邊"更多小工具",再加入追蹤者!



你的版面就會出現,追蹤這個網站!





當我按加入追蹤網站!我就會成為你的追蹤者!同樣你可以追蹤我!


當你有任何新網誌,係我的網誌清單會出現,咁我就 知你有最新UPDATE!
同時你想睇返你所追蹤的網友,只要CLICK左邊佢個網誌就得!




你亦可新增留言欄!同樣新增小工具!




今次選擇"HTML"



然後將下面果堆鬼劃符COPY and PASTE 放入紅圈內就OK!




<div id="RecentCommentsArea"></div>
    <div id="RecentCommentsInfo"><a href='http://wayne-fu.blogspot.com/2012/11/recent-comment-avatar-title.html' rel='nofollow'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRo7tG4WJ_Nw7o_cLBvxkBDLPGhYTv458lhe9WEQNo0PSbP6GpUWnB2p0BMjmGpTrjQB7Pi1ZqlTPRLwTKeA9uYiS5VYAljVicUGwbwAc3AfhUQqXKSipUuV1fdGQeeD4uOtseAfGze3Dt/s1600/info.png' width='20'/></a></div>
    
    <style>
    #RecentCommentsArea a, #RecentCommentsInfo a {
      text-decoration: none;
    }
    #RecentCommentsInfo {
      font-size: 85%;
    }
    .rcDate {
      color: #aaaaaa;
      font-size: 80%;
      float: right;
    }
    .rcAuthor {
      font-size: 110%;
    }
    .rcText {
      cursor: pointer;
      margin: 5px 0px;
    }
    .rcPostTitle {
      font-size: 85%;
      font-weight: bold;
      line-height: 110%;
    }
    </style>
    <script>
    var rComment_prog = {
      startIndex : 1, 
      showComment : 5,
      summaryLength : 25,
      headWidth : 35,
      blogger : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd7S_CRPBQFPkeXPwz8BifOt0WUGj5Cp2ani_i4ors0sHr1YReYeRQ1WL6FEXfJ4Vm86pZDTb6nHS5Jf2W-P6NVOPU95JCA_qcFH9WGa31PI-PgDfcv_AgXpxgsFsc-UVunjZXVBICyuYi/s70/blogger.png",
      openID : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8nfH53MFtX5YQhZf5D9QH8nvjznTZ2CkGSk3FYoXoJf5eXB5DV2Xu-dzYT5tZDml1V4pIaphHiPywZtm243KiL4adHtFs6tV6s1GnqwZmFRgQjKdRYZbz0DHdmerbZOEI8GHsLjf25DEH/s70/openid.png",
      anonymous : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBnJG6xocL3-osO0BsChRoqCLgT5RuaQdghMtTBjxIXRjk0VlVSzEZukhtQudLt5e1qfDvxSMozo5gJh59W1Da1oJiyEXhXSmHn7XIYuik7ZjE-RkOIryuoFNrTvnclbHDuFP8KdupHjo/s70/noname.jpg",
      serialText : "編號",
      totalText : "總共:",
      openLogo : "︾",
      closeLogo : "︽"
    };
    
    rComment_prog.fetch=0;rComment_prog.total=0;rComment_prog.postUrl=[];rComment_prog.postTitle=[];rComment_prog.dg=function(a){return document.getElementById(a)};rComment_prog.linkColor=function(b){var e=rComment_prog.dg,c=(b==1)?e("rc_swap0"):e("RecentCommentsArea"),d;if(c.currentStyle){d=c.currentStyle.color}else{d=window.getComputedStyle(c).color}return d};rComment_prog.getPostTitle=function(q){var h=q.entry.link,p=q.entry.title.$t,g=rComment_prog.dg,m=rComment_prog.showComment,f,e,a,o,d,b,c=0;if(!Array.indexOf){Array.prototype.indexOf=function(k){for(var j=0;j<this.length;j++){if(this[j]==k){return j}}return -1}}while(c<h.length&&h[c].rel!="alternate"){c++}a=h[c].href;if(rComment_prog.postUrl.indexOf(a)<0){rComment_prog.postUrl.push(a);rComment_prog.postTitle.push(p)}for(f=0;f<m;f++){b="rc_postTitle"+f;o=g(b).href;d=o.indexOf("?");o=(d!=-1)?o.substring(0,d):o;e=rComment_prog.postUrl.indexOf(o);if(e>-1){g(b).innerHTML=rComment_prog.postTitle[e]}}};rComment_prog.getJson=function(b){var a=document.createElement("script");a.setAttribute("src",b);document.documentElement.firstChild.appendChild(a)};rComment_prog.event=function(a){var h=rComment_prog.total,g=rComment_prog.dg,b=rComment_prog.linkColor,f=b(1),k=b(0),e;for(e=0;e<h;e++){var c=a+e,d=g(c),j=d.parentNode.parentNode.parentNode;content=d.previousSibling,summary=content.previousSibling,click=function(m){return(function(){rComment_prog.toggle(m)})}(c),mOver=function(){this.style.color=f},mOut=function(){this.style.color=k};j.onmouseover=function(m){return(function(){m.style.display="inline"})}(d);j.onmouseout=function(m){return(function(){m.style.display="none"})}(d);content.style.display="none";d.style.display="none";d.onclick=click;content.onclick=click;summary.onclick=click;content.onmouseover=mOver;content.onmouseout=mOut;summary.onmouseover=mOver;summary.onmouseout=mOut}};rComment_prog.toggle=function(a){if(typeof a!="number"){var e=rComment_prog.dg(a),d=e.previousSibling,b=d.previousSibling;if(d.style.display=="none"){rComment_prog.swap(1,e,d,b)}else{rComment_prog.swap(0,e,d,b)}}else{var c=rComment_prog.total,f=rComment_prog.dg,e;for(i=0;i<c;i++){n="rc_swap"+i;e=f(n);d=e.previousSibling,b=d.previousSibling;if(a==1){rComment_prog.swap(1,e,d,b)}else{rComment_prog.swap(0,e,d,b)}}}};rComment_prog.swap=function(a,d,c,b){if(a==1){b.style.display="none";c.style.display="inline";d.innerHTML=rComment_prog.closeLogo;d.title="收起留言"}else{c.style.display="none";b.style.display="inline";d.innerHTML=rComment_prog.openLogo;d.title="展開留言"}};rComment_prog.init=function(a){var b=rComment_prog.dg,c;if(!a){a=rComment_prog.startIndex}b("RecentCommentsArea").innerHTML="<div style='text-align: center;'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0h0XwpDvIx_ZCgilQ4OGfaIZ-ZA4b-s5L4ZJ23mA28hI7SK_jhrJgbh5I-9QmmqfZp74k592HLt6WoHVubV0QhrH5ryDdpGgy2ZgGtrZQcdPF6Sk8r-C8e_5YE6aWUs-J2R3ie8-9VoQn/s512/indicator-light.gif'/></div>";c="/feeds/comments/default?orderby=published&start-index="+a+"&max-results="+(rComment_prog.showComment+1)+"&alt=json-in-script&callback=rComment_prog.main";rComment_prog.getJson(c)};rComment_prog.switchPage=function(b,a,f){var d=rComment_prog.showComment,e=(b>d),c="";b=e?d:b;c+="<p><a href='http://wayne-fu.blogspot.com/2012/11/recent-comment-avatar-title.html' rel='nofollow' target='_blank'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRo7tG4WJ_Nw7o_cLBvxkBDLPGhYTv458lhe9WEQNo0PSbP6GpUWnB2p0BMjmGpTrjQB7Pi1ZqlTPRLwTKeA9uYiS5VYAljVicUGwbwAc3AfhUQqXKSipUuV1fdGQeeD4uOtseAfGze3Dt/s1600/info.png' title='最新回應+留言者頭像+文章標題\n程式設計:WFU BLOG' style='float: left; width: 20px;'/></a>";c+="<div style='text-align: right;'><a href='javascript:rComment_prog.toggle(1)' title='留言全部展開'>"+rComment_prog.openLogo+"</a>  <a href='javascript:rComment_prog.toggle(0)' title='留言全部收起'>"+rComment_prog.closeLogo+"</a>  ";c+=rComment_prog.serialText+" "+a+"-"+(a+b-1)+", "+rComment_prog.totalText+" "+f+". ";if(a>rComment_prog.startIndex){c+="<a href='javascript:rComment_prog.init("+(a-d)+");' title='上一頁'><<</a>  "}if(e){c+="<a href='javascript:rComment_prog.init("+(a+d)+");' title='下一頁'>>></a>"}c+="</div></p>";rComment_prog.dg("RecentCommentsInfo").innerHTML=c};rComment_prog.main=function(B){var C=rComment_prog.dg,f=B.feed;if(!f.entry){C("RecentCommentsArea").innerHTML="<div style='text-align: center;'>目前尚無留言</div>"}function k(w){var J,j=w.length,I=[],K={};for(J=0;J<j;J++){K[w[J]]=0}for(J in K){I.push(J)}return I}var h=f.entry.length,a=parseInt(f.openSearch$startIndex.$t),p=parseInt(f.openSearch$totalResults.$t),x="",H=(rComment_prog.showComment>h)?h:rComment_prog.showComment,o=[],d=[],y="",v,u=0;rComment_prog.fetch=h;rComment_prog.total=H;x+="<ul style='list-style: none; padding: 0px;'>";for(v=0;v<H;v++){var b=f.entry[v],r=b.author[0].name.$t,t=b.content.$t,D=/<.*?>/g,e=t.replace(D,"").substr(0,rComment_prog.summaryLength),E=b.published.$t.substr(0,10),A=b.author[0].gd$image.src,z=/\/s\d{2}.*?\//ig,m=rComment_prog.headWidth,q="/s"+m*2+"/",s=(b.author[0].uri)?b.author[0].uri.$t:"",c="關於"+r,F="",G="",g;if(b.title.$t){while(u<b.link.length&&b.link[u].rel!="alternate"){u++}g=b.link[u].href}else{g=(b["thr$in-reply-to"])?b["thr$in-reply-to"].href:"http://wayne-fu.blogspot.com/2012/11/recent-comment-avatar-title.html"}if(b["thr$in-reply-to"]){o[v]=b["thr$in-reply-to"].source}else{G="文章已刪除"}if(A.search("blank.gif")>0){if(s){A=rComment_prog.openID}else{A=rComment_prog.anonymous;s=g;c=""}}if(A.search("openid16-rounded.gif")>0){A=rComment_prog.openID}if(A.search("b16-rounded.gif")>0){A=rComment_prog.blogger}F=A.replace(z,q);x+="<li><i class='rcDate'>"+E+"</i>";x+="<span style='float:left; width:"+m+"px;'><a href='"+s+"' target='_blank'><img src='"+F+"' onerror='this.src=\""+A+"\"' style='width:"+m+"px; padding: 0px; border: 1px solid #ccc;' title='"+c+"'/></a></span>";x+="<div style='margin-left:"+(m+10)+"px; word-wrap: break-word;'><b class='rcAuthor'>"+r+":</b>";x+="<div class='rcText'><span title='展開留言'>"+e+"... </span><span title='收起留言'>"+t+" </span><a id='rc_swap"+v+"' href='javascript:void(0)' title='展開留言'>"+rComment_prog.openLogo+"</a></div>";x+="<div class='rcPostTitle'>-- <a id='rc_postTitle"+v+"' href='"+g+"' target='_blank'>"+G+"</a></div>";x+="</div><div style='clear: both;'/></li>"}x+="</ul>";C("RecentCommentsArea").innerHTML=x;rComment_prog.switchPage(parseInt(h),a,p);rComment_prog.event("rc_swap");d=k(o);l=d.length;for(v=0;v<l;v++){y=d[v].replace("default","summary")+"?alt=json-in-script&callback=rComment_prog.getPostTitle";rComment_prog.getJson(y)}};rComment_prog.init();
    </script>

 

7 則留言:

  1. 哩個blog確實比yahoo 複雜...

    回覆刪除
  2. 睇住做, 真係清楚好多啊, 多謝奶茶ge教學^^

    回覆刪除
  3. 奶茶,我個訪客留言唔識自己update,我重新再整過都唔得,你有冇試過咁的情況?

    回覆刪除