Một trong những tiện ích được nhiều website lựa chọn hiện nay đó là chèn vào bên bố cục sidebar một tiện ích thể hiện phản hồi nhận xét mới nhất từ các thành viên, bạn đọc tương tác đến website của bạn. Để làm được điều này thì vô cùng đơn giản. Các bạn làm như sau:
☼ Đối với Blogger:
Bạn vào https://www.blogger.com, vào Bố cục, nhấp chọn thêm tiện ích HTML/JavaScript tại vị trí bạn muốn đặt tiện ích.
Sao chép và dán đoạn code bên dưới vào trong khung tiện ích HTML/JavaScript vừa thêm:
☼ Đối với Blogger:
Bạn vào https://www.blogger.com, vào Bố cục, nhấp chọn thêm tiện ích HTML/JavaScript tại vị trí bạn muốn đặt tiện ích.
Sao chép và dán đoạn code bên dưới vào trong khung tiện ích HTML/JavaScript vừa thêm:
<style type="text/css">
a.dvietrc a{color:#777}
#dvietrc .avatarImage,#dvietrc .noi-dung{position:relative;border:1px solid #eee}
#dvietrc .avatarImage{margin:1px 10px 0 0}
#dvietrc .avatarImage,#dvietrc .avatarRound{width:30px;height:30px}
#dvietrc .avatarImage{margin:1px 10px 0 0}
#dvietrc .avatarImage,#dvietrc .noi-dung{position:relative}
.trai{float:left}
#dvietrc .name{position:absolute;top:-5px;right:-21px;background:none repeat scroll 0% 0% #EEE;padding:2px 4px;line-height:16px;color:#777}
#dvietrc .noi-dung{background:#F9F9F9;padding:13px 10px 4px;width:75%}
</style>
<div id='dvietrc'>
<script type="text/javascript">
//<![CDATA[
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0[\'6\'](0[\'2\'](\'3+4+5+b/7+8+9+a+1\'));',12,12,'this|Ijt0Kz0iPGRpdiBzdHlsZT0nY2xlYXI6IGJvdGgnLz48L2xpPiJ9O2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdkdmlldHJj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I9ci5yZXBsYWNlKC88Lio'.split('|'),0,{}))
var numComments = numComments || 5,
avatarSize = avatarSize || 30,
characters = characters || 30,
defaultAvatar = defaultAvatar || "http://lh5.googleusercontent.com/-5YeC_6-32nw/UPb7SL-uGXI/AAAAAAAABWE/QJRpUV7G9bc/s30/personal.png",
showAvatar = "undefined" === typeof showAvatar ? !0 : showAvatar,
roundAvatar = "undefined" === typeof roundAvatar ? !0 : roundAvatar,
hideCredits = "undefined" === typeof hideCredits ? !1 : roundAvatar
//]]>
</script>
<script type="text/javascript" src="/feeds/comments/default?alt=json&callback=dvietrc&max-results=5"></script>
</div>
<!-- code sưu tầm internet -->
a.dvietrc a{color:#777}
#dvietrc .avatarImage,#dvietrc .noi-dung{position:relative;border:1px solid #eee}
#dvietrc .avatarImage{margin:1px 10px 0 0}
#dvietrc .avatarImage,#dvietrc .avatarRound{width:30px;height:30px}
#dvietrc .avatarImage{margin:1px 10px 0 0}
#dvietrc .avatarImage,#dvietrc .noi-dung{position:relative}
.trai{float:left}
#dvietrc .name{position:absolute;top:-5px;right:-21px;background:none repeat scroll 0% 0% #EEE;padding:2px 4px;line-height:16px;color:#777}
#dvietrc .noi-dung{background:#F9F9F9;padding:13px 10px 4px;width:75%}
</style>
<div id='dvietrc'>
<script type="text/javascript">
//<![CDATA[
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0[\'6\'](0[\'2\'](\'3+4+5+b/7+8+9+a+1\'));',12,12,'this|Ijt0Kz0iPGRpdiBzdHlsZT0nY2xlYXI6IGJvdGgnLz48L2xpPiJ9O2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdkdmlldHJjJykuaW5uZXJIVE1MPXR9|atob|ZnVuY3Rpb24gZHZpZXRyYyhlKXt2YXIgdDt0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,
characters = characters || 30,
defaultAvatar = defaultAvatar || "http://lh5.googleusercontent.com/-5YeC_6-32nw/UPb7SL-uGXI/AAAAAAAABWE/QJRpUV7G9bc/s30/personal.png",
showAvatar = "undefined" === typeof showAvatar ? !0 : showAvatar,
roundAvatar = "undefined" === typeof roundAvatar ? !0 : roundAvatar,
hideCredits = "undefined" === typeof hideCredits ? !1 : roundAvatar
//]]>
</script>
<script type="text/javascript" src="/feeds/comments/default?alt=json&callback=dvietrc&max-results=5"></script>
</div>
<!-- code sưu tầm internet -->
☼ Lưu ý bạn có thể sửa lại số lượng nhận xét. Ở đây mình để là 5. Nếu muốn thêm hãy tìm dòng lệnh: var numComments = numComments || 5
☼ Sau đó Lưu Lại là thành công bạn nhé !
0 nhận xét:
Đăng nhận xét