chắc hẳn bạn cũng biết rằng hệ thống nhận xét của Blogspot có phần khung viết nhận xét (Comments Form and Editor) dưới dạng nhúng từ bên ngoài qua thẻ iframe do đó chúng ta không thể chèn biểu tượng cảm xúc (Emoticons) vào nhận xét bằng phương pháp input như Wordpress. Để giải quyết vấn đề này, chỉ có một cách là tạo khung nhận xét riêng theo kiểu Wordpress cho Blogspot. Tuy nhiên tạm thời mình chưa tìm ra giải pháp vì thế có thể áp dụng một thủ thuật trung gian, tức là tạo tính năng chèn biểu tượng cảm xúc trực tiếp vào một vùng text (textarea) kết hợp nút chọn để người dùng copy mã nhập rồi dán vào khung viết nhận xét, ngoài ra còn có chức năng chèn các thẻ như , , , . Hy vọng đây sẽ là bàn đạp để chúng ta tiến thêm một bước trong công cuộc hiện đại hóa hệ thống nhận xét của Blogspot.
Bạn có thể xem Demo ở phần viết bình luận của Thủ thuật Blogger.
Thủ thuật này đã kết hợp thủ thuật tạo bộ biểu tượng cảm xúc cho nhận xét vì thế nếu áp dụng thủ thuật này thì bạn cần tháo thủ thuật cũ liên quan (nếu đã cài đặt rồi) và thực hiện theo các bước sau đây:
Bước 1. Đăng nhập Blogger, vào Design >> Edit HTML, chọn Expand Widget Templates. Đặt đoạn code sau đây vào trước thẻ </body>. Đây là script chức năng cho bộ biểu tượng cảm xúc hoạt động.
<b:if cond='data:blog.pageType == "item"'>
<script type='text/javascript'>
//<![CDATA[
//Emoticons for Blogger Comments || Author: Huynh Nhat Ha || http://www.thuthuatblogger.info || © Copyright 2010
function emoticonBloggerHuynhNhatHa() {
if(!document.getElementById) {return;} // no support
bodyText = document.getElementById('comments-block');
theText = bodyText.innerHTML;
theText = theText.replace(/:1\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKjdqpKj45pGiJkQR6UOmMaiP7YIkHxYNCdkq_iAhivVzWhYr6ezVVwTeEJGgKmm2H7jnKxRpXxQVP6J4pDtl3SJL-c-m_OOec4VFq0POZM48PMmjOdE_ikmL_2vUi-yBNI2pYFPSwU1TW/s1600/49.gif" />');
theText = theText.replace(/:2\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBzYFMct96QNBtVUXeI5jWwJDoodrcgt2rze46hFdKGiF4VP0_IBHuXiUV-Tte5W-QUmcy0AhehSDO4K_tQeMyYBWz9qcxo0u1aTF__EmxdMTtc7-2Q6ryM9-OJoRXAUAsh6QiEuHFQBX/s1600/102.gif" />');
theText = theText.replace(/:3\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuUm7gVqFIpViH0GvcGHh0kwcwN1FK-sEkALDsU70DphoGvgsvhrP7j0fnyX8y0Hw2CDKfjUqTqZFM5rxLX8Pk2PEzJAJqLRvkDRgm4IUktixqgBjXTUrY8dLH4CCfvgcaQTXLG-ibobf/s1600/113.gif" />');
theText = theText.replace(/:4\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4p3O77HP1x6j6VjglGp20HNNxinmuzc3PQjwZTccdV_UUkuR_DbKjo3gln-ED8WqSeIqxkDz8Zra-lFLf63tWROTbYDBXfiOQ2eOqahqKGFIVcBOknQUafvTBj5QQ-w7l2y_IHW7hPXLD/s1600/93.gif" />');
theText = theText.replace(/:5\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTNk9WTlhRBKP0oWGz-mUMlfU3IpBqIWd-MqLsKEapRrf2a-2mywbHXanVASpJB_adZ3RaQutyeQa7xQi3oTFJqYVU1xSXOtrLd3KUE0CqC_zwHmho4z90ixjUCNzdLGoyK6daVDkUyoxb/s1600/61.gif" />');
theText = theText.replace(/:6\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOCK4RcnX7X9Nqlsy4Ymv93EuhUcpBBvV97kcTOoFed5PNgrJW2KEfaPVFVr4Y29SgtDJtTPeLDKLGx6Tz2FeBSQdE4gDPlH98xLBC9X8yTapGW4Dpb7u-iccGi63TIuVzuMrVLslvlc_/s1600/134.gif" />');
theText = theText.replace(/:7\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjWLQgyGl6uKK-48pbO4mCXVASnHoqSIQTF9wD9AFTPoEVqZaW5KuTtUpcyZmcShL-jpBsWKu87MG9j0UfCJ3y7MiGx5A6qfJMXp_GlRYG5cESjSfIu4KnzXy8nYthLuL52U1NcS9frVxW/s1600/39.gif" />');
theText = theText.replace(/:8\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiSsCoku5mv4XI_7VcYWzbt-3p5d7eMJFGH9b2Yi_aDDjiEJHpunNxFZ7m9zQAbmaGR939vIMv0MOSuOTCuCj3hC-T8pKb6NYXrppLQOiqqYf3CsoTqqUNkgAxERFBQL9UNqh3QkiULziC/s1600/106.gif" />');
theText = theText.replace(/:9\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99cNdahfgX5rKkE1-Mjeom8Q8PWBKXh2K9m1gz-E8BAiVkAMyGJF0nVnnS_yR4r5H6YqjFHppy9R3WYNa0_FDOL04_L9Z-kv-xsAV9RGbP2KwXzbTR2ginEdhktldAcmrKPMI4IpeH-gs/s1600/43.gif" />');
theText = theText.replace(/:A\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvM8Oiza_SjKEfteKObHxTG2FmbobfkfQAruu9vuCi8RCHpfbGibSFeAFuVAwG2R7_YgtHs1Uhv-cTz9TJ_dWCvNXCgfYWHwe_QFpvCZouUadIMXOFvnof1C8CmdjiLPQGJa249bgnITO/s1600/111.gif" />');
theText = theText.replace(/:B\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh73k7jeMVEVZD90YIkYfvx8qQEGKuqcjsF04h7MdHw8aw3BqJkUv2czigcwUNdJysrcl8a7rF6ZKBf_LwO2WJZ6xXHSLcz45ccjrQwP8gxhGb5oiAWBVD8vQBUx12xwc0r7zkLDzWBZbRA/s1600/48.gif" />');
theText = theText.replace(/:C\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEKYBkHPcx7gNUdAP2c9mo4Z6S-ekKjA-ztDMIU4IDGQdAt-HaggL0e9hCun5CKD4kzOfxHRpfz94LC4JrJwij_ESFWgAfr4iBoS2oKVi6h-LYqZMOHMtbKx-7a0h1bYQjnAY3WLZxgFAF/s1600/54.gif" />');
theText = theText.replace(/:D\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxo1S4hfkBrUwAtOJnFUk7tWotIUAx6e4tY80Pc4hifs07T8FV1IvbdMuD_V7So33CQBL6BaBplp6zsWb-hc-cbTGjLIzcXFn3ehr_Sak8fALMx4xkGNOzw2Nekyx0E7pzVT0jOfS6AxW4/s1600/63.gif" />');
theText = theText.replace(/:E\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkV_mjcJSNDdeuCH5ZPqfIhEkIjqIXsU6B5R8Gzps0JRqpftxQXwvrkCnf5vAxtbM347RF6b4yYfptA3w48ibKetu0RcxlbIqtXSSSra2_Wnpa4Tp5GpSZl0N5CuvaJhX9nk7HZx-oD_o/s1600/100.gif" />');
theText = theText.replace(/:F\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjQOZM20_CfDT6pOZ2e0pD3XT_uO24oxwddx79G-OKsD0j2A1ue-sVIf1QJUBvQ7unLJkhieyeyj6jaTuPA6SGBvBOqhI6B1gWWsJpGNAs8b8l_8Yn9y72yiD4WLfwWSY4VJnttvNaUT1/s1600/45.gif" />');
theText = theText.replace(/:G\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZF8cnOMZONwR-FbznfuJ-u1frTcKJYu-tIKtxdb9xoAIXj3ODT3zVC3Th5sjYiUJcICOCV6syRtVOtTbvu3UR68QL5DTT_x24oFZhnF9cupCL8UFwuCglX0t4hSAxeEItjrkKlCfqCGm/s1600/77.gif" />');
theText = theText.replace(/:H\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidCxlIizYWQ5KmfwpCclk5Qcw9nnwfoVP6PBZ1PRi_dnu6HXjfFuuEmPUbIL498tqdobs7y64pzlCl-d-QgIdpp34p_yy_U21f_DQdq-A9kEdbZkWZQwfanSh6d_cJKd_2eQbCkMErw5wr/s1600/86.gif" />');
theText = theText.replace(/:I\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsaaCGPJBHUadYDQ_CjBSy7S04wxn332DLgwwsL36PUzEN_UbrpC-T9MIP4QhwuWj-TJ3eIZ8nCPQ_YdboMpOW91YYh9uKcY4YH9doaLEzZUBIiOnve_qJkVDjgSuYO5b6EL5V8FWUEXEq/s1600/94.gif" />');
theText = theText.replace(/:J\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJHmLOPneSERKa42QigisMBYhkwx0LRiB6CAgCJfIHzrE9N0XSeHqsnn5unEW5y6AXdJRY7bFRvtKyb_BTVJ2okY4rgWX7Mac8YELo-91DcpPivx44-308y7a2KLw4R9VNYsPQ9tUIpSI2/s1600/83.gif" />');
theText = theText.replace(/:K\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjo1O6gOLPuSXw7zGQJkz7DAZDN4T1HqLruJq6EzP7t0Swaf2S76m3DksSMTVsLqpXullRLRnNd20VNMBr-w38-yglb79MIz_8H4Tnwddf_RzkqZnz319EA8iVNwzwTPu5yb5OobKzxJ8t/s1600/59.gif" />');
theText = theText.replace(/:L\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo02YuJEz74I6sseCuN5o0i2kePgy3A3bBmi4xE1HqS5nSRYfWAxfpcqlV9aepkEMA3OZqsU94_2AWI9YmKcgJFQGfVFfmWs6Giv4DnmiSyIIlUG7k9Hw4dzmC7YuZfMziVmIapQGJkWlA/s1600/soldierbaby.gif" />');
theText = theText.replace(/:M\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdJKuHXheKe0rC6q4K43oacMOf2m4fZi-RpRwlDMnjtZ1Rej0Z3ZcjwECqmqPa8i2CbQLfCFRNJp0EcAFfH8kRq5bU7JAMWN7awGj-MAoh2kHSgwjdSvcMviGkh_T_TbnZcRQClclJ3uu/s1600/alo.gif" />');
theText = theText.replace(/:N\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgq2M28KtlTJfAo4DyF0bQGXDhWIzV3thTqq0S1kRo5L5749aygxarJc4N6dufrSjH_chyphenhyphenwRzIq6Vz_GnREnTtBRy5vJBsjoTRRi7KBvGoJwMx8Aon2qnKQWJ1GxVOzFW3kTUycMMh8PYP/s1600/shutup.gif" />');
theText = theText.replace(/:O\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY3sLg4LdFpNB_PKor1M2LCG6n82sN-cJY_g417MfFZ-WEW6ELw7NqwbrdoMxUUbDatEgJ0K-6tAGVPJ0_z-nq0UMaMQVM9QioN40ZaLY2mwWCqNDuuzny0IxijtndFkAVF0wyp_TlQjuB/s1600/yeulam.gif" />');
theText = theText.replace(/:P\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicEIyI17OzuHeZffjIWwWZhAjeYwc0MspWK3UMlw58pcqOiirN3MBT-M1DBTNM7Va2BTqYK7yJ9fLiasDWYlTEJzjdQQ4Q5SxUNLmrlLZkz4LGC7AG3wj6We388xckCiy0mCkem_h2OWdX/s1600/datbomb.gif" />');
bodyText.innerHTML = theText;}
//]]>
</script>
<script type='text/javascript'>
emoticonBloggerHuynhNhatHa();
</script>
</b:if>
Cần chú ý để chức năng biểu tượng cảm xúc hoạt động trong phần nhận xét thì bạn phải thay đổi ID comments-block cho phù hợp. ID này nằm trong một thẻ chỉ định thành phần chứa các dữ liệu của nhận xét, thẻ này thường nằm ngay trước dòng <b:loop values='data:post.comments' var='comment'>. Tùy theo cách đặt tên của người thiết kế Template mà id này có thể có tên khác nhau ví dụ: comments-block, comments-block3, comments_block, cm_block, commentsblock …
Bước 2. Tìm đến đoạn code như bên dưới. Đoạn code này biểu thị phần khung viết nhận xét.
<data:blogTeamBlogMessage/>
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/>
Đặt trước đoạn code trên bằng đoạn code bên dưới:
<script type='text/javascript'>
//<![CDATA[
// Script to insert Emoticons and Links on Blogspot Comments V1 by www.thuthuatblogger.info
function comments_URL() {
var r = prompt("Nhập địa chỉ trang", "http://");
var p = prompt("Nhập link text hiển thị", "Text");
if(r != "") ; if(p != ""){
document.getElementById('comments_input').value += "<a href='" + r + "' rel='nofollow'>" + p + "<\/a>";
} else {
alert("Bạn đã nhập xong dữ liệu");
}
}
function comments_HTML() {
document.getElementById('comments_input').value += '<a href=\'http://URL dẫn đến link \'>Trang<\/a>';
}
function comments_B() {
document.getElementById('comments_input').value += '<b><\/b>';
}
function comments_I() {
document.getElementById('comments_input').value += '<i><\/i>';
}
function comments_EM() {
document.getElementById('comments_input').value += '<em><\/em>';
}
function moreSmilies() {
document.getElementById('smiley-more').style.display = 'inline';
document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:lessSmilies()">« Less</a></span>';
}
function lessSmilies() {
document.getElementById('smiley-more').style.display = 'none';
document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:moreSmilies()">More »</a>';
}
//]]>
</script>
<style>
#comments_insert {padding:0;margin:0;width:600px;float:left;text-align: center}
#comments_insert img {padding:0;border:none;margin:2px}
.text_style_wrap {margin-top:10px;}
.text_style {border:1px solid #069;padding:3px;background: #d8eaee}
#comments_insert a {text-decoration:none}
#comments_HTML {display: none}
#comments_input {margin-top:10px}
.tooltip{outline:none;cursor:help;text-decoration:none;position:relative}
.tooltip span{margin-left:-999em;position:absolute}
.tooltip:hover span{border-radius:5px 5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:5px 5px 5px rgba(0,0,0,0.1);-webkit-box-shadow:5px 5px rgba(0,0,0,0.1);-moz-box-shadow:5px 5px rgba(0,0,0,0.1);font-family:Calibri,Tahoma,Geneva,sans-serif;position:absolute;left:1em;top:2em;z-index:99;margin-left:0;width:300px}
.tooltip:hover img{border:0;margin:-10px 0 0 -55px;float:left;position:absolute}
.tooltip:hover em{font-family:Candara,Tahoma,Geneva,sans-serif;font-size:1.2em;font-weight:bold;display:block;padding:0.2em 0 0.6em 0}
.help{padding: 0.8em 1em; background: #FFCCAA; border: 1px solid #FF3334;text-align:justify;color:#000}
</style>
<!--[if IE]> <style> #comments_URL {display: none} #comments_HTML {display:inline} </style> <![endif]-->
<div id='comments_insert'>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":1) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKjdqpKj45pGiJkQR6UOmMaiP7YIkHxYNCdkq_iAhivVzWhYr6ezVVwTeEJGgKmm2H7jnKxRpXxQVP6J4pDtl3SJL-c-m_OOec4VFq0POZM48PMmjOdE_ikmL_2vUi-yBNI2pYFPSwU1TW/s1600/49.gif' style='border: 0; padding:0' title='hê hê hê'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":2) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBzYFMct96QNBtVUXeI5jWwJDoodrcgt2rze46hFdKGiF4VP0_IBHuXiUV-Tte5W-QUmcy0AhehSDO4K_tQeMyYBWz9qcxo0u1aTF__EmxdMTtc7-2Q6ryM9-OJoRXAUAsh6QiEuHFQBX/s1600/102.gif' style='border: 0; padding:0' title='hôn hôn'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":3) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuUm7gVqFIpViH0GvcGHh0kwcwN1FK-sEkALDsU70DphoGvgsvhrP7j0fnyX8y0Hw2CDKfjUqTqZFM5rxLX8Pk2PEzJAJqLRvkDRgm4IUktixqgBjXTUrY8dLH4CCfvgcaQTXLG-ibobf/s1600/113.gif' style='border: 0; padding:0' title='ua ua ua'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":4) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4p3O77HP1x6j6VjglGp20HNNxinmuzc3PQjwZTccdV_UUkuR_DbKjo3gln-ED8WqSeIqxkDz8Zra-lFLf63tWROTbYDBXfiOQ2eOqahqKGFIVcBOknQUafvTBj5QQ-w7l2y_IHW7hPXLD/s1600/93.gif' style='border: 0; padding:0' title='nhìn nè'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":5) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTNk9WTlhRBKP0oWGz-mUMlfU3IpBqIWd-MqLsKEapRrf2a-2mywbHXanVASpJB_adZ3RaQutyeQa7xQi3oTFJqYVU1xSXOtrLd3KUE0CqC_zwHmho4z90ixjUCNzdLGoyK6daVDkUyoxb/s1600/61.gif' style='border: 0; padding:0' title='vỗ tay'/></a>
<span id='smiley-more' style='display: none;'>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":6) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOCK4RcnX7X9Nqlsy4Ymv93EuhUcpBBvV97kcTOoFed5PNgrJW2KEfaPVFVr4Y29SgtDJtTPeLDKLGx6Tz2FeBSQdE4gDPlH98xLBC9X8yTapGW4Dpb7u-iccGi63TIuVzuMrVLslvlc_/s1600/134.gif' style='border: 0; padding:0' title='tát bớp'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":7) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjWLQgyGl6uKK-48pbO4mCXVASnHoqSIQTF9wD9AFTPoEVqZaW5KuTtUpcyZmcShL-jpBsWKu87MG9j0UfCJ3y7MiGx5A6qfJMXp_GlRYG5cESjSfIu4KnzXy8nYthLuL52U1NcS9frVxW/s1600/39.gif' style='border: 0; padding:0' title='rơi lệ'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":8) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiSsCoku5mv4XI_7VcYWzbt-3p5d7eMJFGH9b2Yi_aDDjiEJHpunNxFZ7m9zQAbmaGR939vIMv0MOSuOTCuCj3hC-T8pKb6NYXrppLQOiqqYf3CsoTqqUNkgAxERFBQL9UNqh3QkiULziC/s1600/106.gif' style='border: 0; padding:0' title='money money'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":9) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99cNdahfgX5rKkE1-Mjeom8Q8PWBKXh2K9m1gz-E8BAiVkAMyGJF0nVnnS_yR4r5H6YqjFHppy9R3WYNa0_FDOL04_L9Z-kv-xsAV9RGbP2KwXzbTR2ginEdhktldAcmrKPMI4IpeH-gs/s1600/43.gif' style='border: 0; padding:0' title='lêu lêu'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":A) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvM8Oiza_SjKEfteKObHxTG2FmbobfkfQAruu9vuCi8RCHpfbGibSFeAFuVAwG2R7_YgtHs1Uhv-cTz9TJ_dWCvNXCgfYWHwe_QFpvCZouUadIMXOFvnof1C8CmdjiLPQGJa249bgnITO/s1600/111.gif' style='border: 0; padding:0' title='lắc đầu'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":B) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh73k7jeMVEVZD90YIkYfvx8qQEGKuqcjsF04h7MdHw8aw3BqJkUv2czigcwUNdJysrcl8a7rF6ZKBf_LwO2WJZ6xXHSLcz45ccjrQwP8gxhGb5oiAWBVD8vQBUx12xwc0r7zkLDzWBZbRA/s1600/48.gif' style='border: 0; padding:0' title='khóc ròng'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":C) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEKYBkHPcx7gNUdAP2c9mo4Z6S-ekKjA-ztDMIU4IDGQdAt-HaggL0e9hCun5CKD4kzOfxHRpfz94LC4JrJwij_ESFWgAfr4iBoS2oKVi6h-LYqZMOHMtbKx-7a0h1bYQjnAY3WLZxgFAF/s1600/54.gif' style='border: 0; padding:0' title='I don’t know'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":D) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxo1S4hfkBrUwAtOJnFUk7tWotIUAx6e4tY80Pc4hifs07T8FV1IvbdMuD_V7So33CQBL6BaBplp6zsWb-hc-cbTGjLIzcXFn3ehr_Sak8fALMx4xkGNOzw2Nekyx0E7pzVT0jOfS6AxW4/s1600/63.gif' style='border: 0; padding:0' title='hi hi hi'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":E) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkV_mjcJSNDdeuCH5ZPqfIhEkIjqIXsU6B5R8Gzps0JRqpftxQXwvrkCnf5vAxtbM347RF6b4yYfptA3w48ibKetu0RcxlbIqtXSSSra2_Wnpa4Tp5GpSZl0N5CuvaJhX9nk7HZx-oD_o/s1600/100.gif' style='border: 0; padding:0' title='đá một phát'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":F) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjQOZM20_CfDT6pOZ2e0pD3XT_uO24oxwddx79G-OKsD0j2A1ue-sVIf1QJUBvQ7unLJkhieyeyj6jaTuPA6SGBvBOqhI6B1gWWsJpGNAs8b8l_8Yn9y72yiD4WLfwWSY4VJnttvNaUT1/s1600/45.gif' style='border: 0; padding:0' title='cười lớn giơ răng'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":G) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZF8cnOMZONwR-FbznfuJ-u1frTcKJYu-tIKtxdb9xoAIXj3ODT3zVC3Th5sjYiUJcICOCV6syRtVOtTbvu3UR68QL5DTT_x24oFZhnF9cupCL8UFwuCglX0t4hSAxeEItjrkKlCfqCGm/s1600/77.gif' style='border: 0; padding:0' title='cụng ly'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":H) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidCxlIizYWQ5KmfwpCclk5Qcw9nnwfoVP6PBZ1PRi_dnu6HXjfFuuEmPUbIL498tqdobs7y64pzlCl-d-QgIdpp34p_yy_U21f_DQdq-A9kEdbZkWZQwfanSh6d_cJKd_2eQbCkMErw5wr/s1600/86.gif' style='border: 0; padding:0' title='chém gió'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":I) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsaaCGPJBHUadYDQ_CjBSy7S04wxn332DLgwwsL36PUzEN_UbrpC-T9MIP4QhwuWj-TJ3eIZ8nCPQ_YdboMpOW91YYh9uKcY4YH9doaLEzZUBIiOnve_qJkVDjgSuYO5b6EL5V8FWUEXEq/s1600/94.gif' style='border: 0; padding:0' title='bắt tay'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":J) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJHmLOPneSERKa42QigisMBYhkwx0LRiB6CAgCJfIHzrE9N0XSeHqsnn5unEW5y6AXdJRY7bFRvtKyb_BTVJ2okY4rgWX7Mac8YELo-91DcpPivx44-308y7a2KLw4R9VNYsPQ9tUIpSI2/s1600/83.gif' style='border: 0; padding:0' title='ăn ăn ăn'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":K) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjo1O6gOLPuSXw7zGQJkz7DAZDN4T1HqLruJq6EzP7t0Swaf2S76m3DksSMTVsLqpXullRLRnNd20VNMBr-w38-yglb79MIz_8H4Tnwddf_RzkqZnz319EA8iVNwzwTPu5yb5OobKzxJ8t/s1600/59.gif' style='border: 0; padding:0' title='byyeee'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":L) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo02YuJEz74I6sseCuN5o0i2kePgy3A3bBmi4xE1HqS5nSRYfWAxfpcqlV9aepkEMA3OZqsU94_2AWI9YmKcgJFQGfVFfmWs6Giv4DnmiSyIIlUG7k9Hw4dzmC7YuZfMziVmIapQGJkWlA/s1600/soldierbaby.gif' style='border: 0; padding:0' title='nhóc lính'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":M) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdJKuHXheKe0rC6q4K43oacMOf2m4fZi-RpRwlDMnjtZ1Rej0Z3ZcjwECqmqPa8i2CbQLfCFRNJp0EcAFfH8kRq5bU7JAMWN7awGj-MAoh2kHSgwjdSvcMviGkh_T_TbnZcRQClclJ3uu/s1600/alo.gif' style='border: 0; padding:0' title='Alo'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":N) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgq2M28KtlTJfAo4DyF0bQGXDhWIzV3thTqq0S1kRo5L5749aygxarJc4N6dufrSjH_chyphenhyphenwRzIq6Vz_GnREnTtBRy5vJBsjoTRRi7KBvGoJwMx8Aon2qnKQWJ1GxVOzFW3kTUycMMh8PYP/s1600/shutup.gif' style='border: 0; padding:0' title='Shup up'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":O) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY3sLg4LdFpNB_PKor1M2LCG6n82sN-cJY_g417MfFZ-WEW6ELw7NqwbrdoMxUUbDatEgJ0K-6tAGVPJ0_z-nq0UMaMQVM9QioN40ZaLY2mwWCqNDuuzny0IxijtndFkAVF0wyp_TlQjuB/s1600/yeulam.gif' style='border: 0; padding:0' title='Yêu lắm đó'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":P) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicEIyI17OzuHeZffjIWwWZhAjeYwc0MspWK3UMlw58pcqOiirN3MBT-M1DBTNM7Va2BTqYK7yJ9fLiasDWYlTEJzjdQQ4Q5SxUNLmrlLZkz4LGC7AG3wj6We388xckCiy0mCkem_h2OWdX/s1600/datbomb.gif' style='border: 0; padding:0' title='Đặt bom'/></a>
</span>
<span id='smiley-toggle'><a href='javascript:moreSmilies()'>
More →</a></span>
<div class='text_style_wrap'>
<a href='javascript: void(0);' onClick='comments_B()'><span class='text_style'><b>Chữ đậm</b></span></a>
<a href='javascript: void(0);' onClick='comments_I()'><span class='text_style'><i>Chữ nghiêng</i></span></a>
<a href='javascript: void(0);' onClick='comments_EM()'><span class='text_style'><em>Chữ nghiêng 2</em></span></a>
<a href='javascript: void(0);' id='comments_HTML' onClick='comments_HTML()'><span class='text_style'>Chèn Link</span></a>
<a href='javascript: void(0);' id='comments_URL' onClick='comments_URL()'><span class='text_style'>Chèn Link</span></a>
<script type='text/javascript'>
function openup_parseHTML() { window.open("http://ha-escapexml.blogspot.com", "followblog", "height=540, width=450, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no" ); }
</script>
<a href='javascript:openup_parseHTML()' rel='nofollow' title='Mã hóa code trước khi đưa vào bình luận'><span class='text_style'>Mã hóa code</span></a>
<a class='tooltip' href='javascript: void(0);'><b style='color:#F00'>Help ?</b><span class='help'>Nhấn vào biểu tượng hoặc kiểu chữ hoặc chèn link sau đó nhấn nút Chọn rồi copy (Ctrl + C) để paste (Ctrl + V) vào khung viết bình luận. Mã hóa code nếu bạn muốn đưa code vào bình luận.</span></a>
</div>
<form name='comments_form'>
<textarea cols='70' id='comments_input' rows='1' style='background: #F8F8FF;margin-bottom:7px'/>
<br/>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").select();'><span class='text_style'>Chọn</span></a>
<a href='javascript: void(0);' onClick='document.comments_form.reset();'><span class='text_style'>Xóa</span></a>
</form>
</div>
Lưu Template. Trên đây mình gắn sẳn 25 biểu tượng cảm xúc, nếu các bạn muốn thêm thì có thể tự nghiên cứu để gắn thêm vào, đảm bảo sự đồng nhất biểu tượng theo thứ tự ở Bước 1 và Bước 2. Những phần được đánh dấu màu đỏ là những phần bạn có thể tùy biến theo ý thích của mình.
THEO: THUTHUATBLOGGER.IFNO
Bạn có thể xem Demo ở phần viết bình luận của Thủ thuật Blogger.
Thủ thuật này đã kết hợp thủ thuật tạo bộ biểu tượng cảm xúc cho nhận xét vì thế nếu áp dụng thủ thuật này thì bạn cần tháo thủ thuật cũ liên quan (nếu đã cài đặt rồi) và thực hiện theo các bước sau đây:
Bước 1. Đăng nhập Blogger, vào Design >> Edit HTML, chọn Expand Widget Templates. Đặt đoạn code sau đây vào trước thẻ </body>. Đây là script chức năng cho bộ biểu tượng cảm xúc hoạt động.
<b:if cond='data:blog.pageType == "item"'>
<script type='text/javascript'>
//<![CDATA[
//Emoticons for Blogger Comments || Author: Huynh Nhat Ha || http://www.thuthuatblogger.info || © Copyright 2010
function emoticonBloggerHuynhNhatHa() {
if(!document.getElementById) {return;} // no support
bodyText = document.getElementById('comments-block');
theText = bodyText.innerHTML;
theText = theText.replace(/:1\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKjdqpKj45pGiJkQR6UOmMaiP7YIkHxYNCdkq_iAhivVzWhYr6ezVVwTeEJGgKmm2H7jnKxRpXxQVP6J4pDtl3SJL-c-m_OOec4VFq0POZM48PMmjOdE_ikmL_2vUi-yBNI2pYFPSwU1TW/s1600/49.gif" />');
theText = theText.replace(/:2\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBzYFMct96QNBtVUXeI5jWwJDoodrcgt2rze46hFdKGiF4VP0_IBHuXiUV-Tte5W-QUmcy0AhehSDO4K_tQeMyYBWz9qcxo0u1aTF__EmxdMTtc7-2Q6ryM9-OJoRXAUAsh6QiEuHFQBX/s1600/102.gif" />');
theText = theText.replace(/:3\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuUm7gVqFIpViH0GvcGHh0kwcwN1FK-sEkALDsU70DphoGvgsvhrP7j0fnyX8y0Hw2CDKfjUqTqZFM5rxLX8Pk2PEzJAJqLRvkDRgm4IUktixqgBjXTUrY8dLH4CCfvgcaQTXLG-ibobf/s1600/113.gif" />');
theText = theText.replace(/:4\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4p3O77HP1x6j6VjglGp20HNNxinmuzc3PQjwZTccdV_UUkuR_DbKjo3gln-ED8WqSeIqxkDz8Zra-lFLf63tWROTbYDBXfiOQ2eOqahqKGFIVcBOknQUafvTBj5QQ-w7l2y_IHW7hPXLD/s1600/93.gif" />');
theText = theText.replace(/:5\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTNk9WTlhRBKP0oWGz-mUMlfU3IpBqIWd-MqLsKEapRrf2a-2mywbHXanVASpJB_adZ3RaQutyeQa7xQi3oTFJqYVU1xSXOtrLd3KUE0CqC_zwHmho4z90ixjUCNzdLGoyK6daVDkUyoxb/s1600/61.gif" />');
theText = theText.replace(/:6\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOCK4RcnX7X9Nqlsy4Ymv93EuhUcpBBvV97kcTOoFed5PNgrJW2KEfaPVFVr4Y29SgtDJtTPeLDKLGx6Tz2FeBSQdE4gDPlH98xLBC9X8yTapGW4Dpb7u-iccGi63TIuVzuMrVLslvlc_/s1600/134.gif" />');
theText = theText.replace(/:7\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjWLQgyGl6uKK-48pbO4mCXVASnHoqSIQTF9wD9AFTPoEVqZaW5KuTtUpcyZmcShL-jpBsWKu87MG9j0UfCJ3y7MiGx5A6qfJMXp_GlRYG5cESjSfIu4KnzXy8nYthLuL52U1NcS9frVxW/s1600/39.gif" />');
theText = theText.replace(/:8\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiSsCoku5mv4XI_7VcYWzbt-3p5d7eMJFGH9b2Yi_aDDjiEJHpunNxFZ7m9zQAbmaGR939vIMv0MOSuOTCuCj3hC-T8pKb6NYXrppLQOiqqYf3CsoTqqUNkgAxERFBQL9UNqh3QkiULziC/s1600/106.gif" />');
theText = theText.replace(/:9\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99cNdahfgX5rKkE1-Mjeom8Q8PWBKXh2K9m1gz-E8BAiVkAMyGJF0nVnnS_yR4r5H6YqjFHppy9R3WYNa0_FDOL04_L9Z-kv-xsAV9RGbP2KwXzbTR2ginEdhktldAcmrKPMI4IpeH-gs/s1600/43.gif" />');
theText = theText.replace(/:A\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvM8Oiza_SjKEfteKObHxTG2FmbobfkfQAruu9vuCi8RCHpfbGibSFeAFuVAwG2R7_YgtHs1Uhv-cTz9TJ_dWCvNXCgfYWHwe_QFpvCZouUadIMXOFvnof1C8CmdjiLPQGJa249bgnITO/s1600/111.gif" />');
theText = theText.replace(/:B\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh73k7jeMVEVZD90YIkYfvx8qQEGKuqcjsF04h7MdHw8aw3BqJkUv2czigcwUNdJysrcl8a7rF6ZKBf_LwO2WJZ6xXHSLcz45ccjrQwP8gxhGb5oiAWBVD8vQBUx12xwc0r7zkLDzWBZbRA/s1600/48.gif" />');
theText = theText.replace(/:C\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEKYBkHPcx7gNUdAP2c9mo4Z6S-ekKjA-ztDMIU4IDGQdAt-HaggL0e9hCun5CKD4kzOfxHRpfz94LC4JrJwij_ESFWgAfr4iBoS2oKVi6h-LYqZMOHMtbKx-7a0h1bYQjnAY3WLZxgFAF/s1600/54.gif" />');
theText = theText.replace(/:D\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxo1S4hfkBrUwAtOJnFUk7tWotIUAx6e4tY80Pc4hifs07T8FV1IvbdMuD_V7So33CQBL6BaBplp6zsWb-hc-cbTGjLIzcXFn3ehr_Sak8fALMx4xkGNOzw2Nekyx0E7pzVT0jOfS6AxW4/s1600/63.gif" />');
theText = theText.replace(/:E\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkV_mjcJSNDdeuCH5ZPqfIhEkIjqIXsU6B5R8Gzps0JRqpftxQXwvrkCnf5vAxtbM347RF6b4yYfptA3w48ibKetu0RcxlbIqtXSSSra2_Wnpa4Tp5GpSZl0N5CuvaJhX9nk7HZx-oD_o/s1600/100.gif" />');
theText = theText.replace(/:F\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjQOZM20_CfDT6pOZ2e0pD3XT_uO24oxwddx79G-OKsD0j2A1ue-sVIf1QJUBvQ7unLJkhieyeyj6jaTuPA6SGBvBOqhI6B1gWWsJpGNAs8b8l_8Yn9y72yiD4WLfwWSY4VJnttvNaUT1/s1600/45.gif" />');
theText = theText.replace(/:G\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZF8cnOMZONwR-FbznfuJ-u1frTcKJYu-tIKtxdb9xoAIXj3ODT3zVC3Th5sjYiUJcICOCV6syRtVOtTbvu3UR68QL5DTT_x24oFZhnF9cupCL8UFwuCglX0t4hSAxeEItjrkKlCfqCGm/s1600/77.gif" />');
theText = theText.replace(/:H\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidCxlIizYWQ5KmfwpCclk5Qcw9nnwfoVP6PBZ1PRi_dnu6HXjfFuuEmPUbIL498tqdobs7y64pzlCl-d-QgIdpp34p_yy_U21f_DQdq-A9kEdbZkWZQwfanSh6d_cJKd_2eQbCkMErw5wr/s1600/86.gif" />');
theText = theText.replace(/:I\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsaaCGPJBHUadYDQ_CjBSy7S04wxn332DLgwwsL36PUzEN_UbrpC-T9MIP4QhwuWj-TJ3eIZ8nCPQ_YdboMpOW91YYh9uKcY4YH9doaLEzZUBIiOnve_qJkVDjgSuYO5b6EL5V8FWUEXEq/s1600/94.gif" />');
theText = theText.replace(/:J\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJHmLOPneSERKa42QigisMBYhkwx0LRiB6CAgCJfIHzrE9N0XSeHqsnn5unEW5y6AXdJRY7bFRvtKyb_BTVJ2okY4rgWX7Mac8YELo-91DcpPivx44-308y7a2KLw4R9VNYsPQ9tUIpSI2/s1600/83.gif" />');
theText = theText.replace(/:K\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjo1O6gOLPuSXw7zGQJkz7DAZDN4T1HqLruJq6EzP7t0Swaf2S76m3DksSMTVsLqpXullRLRnNd20VNMBr-w38-yglb79MIz_8H4Tnwddf_RzkqZnz319EA8iVNwzwTPu5yb5OobKzxJ8t/s1600/59.gif" />');
theText = theText.replace(/:L\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo02YuJEz74I6sseCuN5o0i2kePgy3A3bBmi4xE1HqS5nSRYfWAxfpcqlV9aepkEMA3OZqsU94_2AWI9YmKcgJFQGfVFfmWs6Giv4DnmiSyIIlUG7k9Hw4dzmC7YuZfMziVmIapQGJkWlA/s1600/soldierbaby.gif" />');
theText = theText.replace(/:M\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdJKuHXheKe0rC6q4K43oacMOf2m4fZi-RpRwlDMnjtZ1Rej0Z3ZcjwECqmqPa8i2CbQLfCFRNJp0EcAFfH8kRq5bU7JAMWN7awGj-MAoh2kHSgwjdSvcMviGkh_T_TbnZcRQClclJ3uu/s1600/alo.gif" />');
theText = theText.replace(/:N\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgq2M28KtlTJfAo4DyF0bQGXDhWIzV3thTqq0S1kRo5L5749aygxarJc4N6dufrSjH_chyphenhyphenwRzIq6Vz_GnREnTtBRy5vJBsjoTRRi7KBvGoJwMx8Aon2qnKQWJ1GxVOzFW3kTUycMMh8PYP/s1600/shutup.gif" />');
theText = theText.replace(/:O\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY3sLg4LdFpNB_PKor1M2LCG6n82sN-cJY_g417MfFZ-WEW6ELw7NqwbrdoMxUUbDatEgJ0K-6tAGVPJ0_z-nq0UMaMQVM9QioN40ZaLY2mwWCqNDuuzny0IxijtndFkAVF0wyp_TlQjuB/s1600/yeulam.gif" />');
theText = theText.replace(/:P\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicEIyI17OzuHeZffjIWwWZhAjeYwc0MspWK3UMlw58pcqOiirN3MBT-M1DBTNM7Va2BTqYK7yJ9fLiasDWYlTEJzjdQQ4Q5SxUNLmrlLZkz4LGC7AG3wj6We388xckCiy0mCkem_h2OWdX/s1600/datbomb.gif" />');
bodyText.innerHTML = theText;}
//]]>
</script>
<script type='text/javascript'>
emoticonBloggerHuynhNhatHa();
</script>
</b:if>
Cần chú ý để chức năng biểu tượng cảm xúc hoạt động trong phần nhận xét thì bạn phải thay đổi ID comments-block cho phù hợp. ID này nằm trong một thẻ chỉ định thành phần chứa các dữ liệu của nhận xét, thẻ này thường nằm ngay trước dòng <b:loop values='data:post.comments' var='comment'>. Tùy theo cách đặt tên của người thiết kế Template mà id này có thể có tên khác nhau ví dụ: comments-block, comments-block3, comments_block, cm_block, commentsblock …
Bước 2. Tìm đến đoạn code như bên dưới. Đoạn code này biểu thị phần khung viết nhận xét.
<data:blogTeamBlogMessage/>
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/>
Đặt trước đoạn code trên bằng đoạn code bên dưới:
<script type='text/javascript'>
//<![CDATA[
// Script to insert Emoticons and Links on Blogspot Comments V1 by www.thuthuatblogger.info
function comments_URL() {
var r = prompt("Nhập địa chỉ trang", "http://");
var p = prompt("Nhập link text hiển thị", "Text");
if(r != "") ; if(p != ""){
document.getElementById('comments_input').value += "<a href='" + r + "' rel='nofollow'>" + p + "<\/a>";
} else {
alert("Bạn đã nhập xong dữ liệu");
}
}
function comments_HTML() {
document.getElementById('comments_input').value += '<a href=\'http://URL dẫn đến link \'>Trang<\/a>';
}
function comments_B() {
document.getElementById('comments_input').value += '<b><\/b>';
}
function comments_I() {
document.getElementById('comments_input').value += '<i><\/i>';
}
function comments_EM() {
document.getElementById('comments_input').value += '<em><\/em>';
}
function moreSmilies() {
document.getElementById('smiley-more').style.display = 'inline';
document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:lessSmilies()">« Less</a></span>';
}
function lessSmilies() {
document.getElementById('smiley-more').style.display = 'none';
document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:moreSmilies()">More »</a>';
}
//]]>
</script>
<style>
#comments_insert {padding:0;margin:0;width:600px;float:left;text-align: center}
#comments_insert img {padding:0;border:none;margin:2px}
.text_style_wrap {margin-top:10px;}
.text_style {border:1px solid #069;padding:3px;background: #d8eaee}
#comments_insert a {text-decoration:none}
#comments_HTML {display: none}
#comments_input {margin-top:10px}
.tooltip{outline:none;cursor:help;text-decoration:none;position:relative}
.tooltip span{margin-left:-999em;position:absolute}
.tooltip:hover span{border-radius:5px 5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:5px 5px 5px rgba(0,0,0,0.1);-webkit-box-shadow:5px 5px rgba(0,0,0,0.1);-moz-box-shadow:5px 5px rgba(0,0,0,0.1);font-family:Calibri,Tahoma,Geneva,sans-serif;position:absolute;left:1em;top:2em;z-index:99;margin-left:0;width:300px}
.tooltip:hover img{border:0;margin:-10px 0 0 -55px;float:left;position:absolute}
.tooltip:hover em{font-family:Candara,Tahoma,Geneva,sans-serif;font-size:1.2em;font-weight:bold;display:block;padding:0.2em 0 0.6em 0}
.help{padding: 0.8em 1em; background: #FFCCAA; border: 1px solid #FF3334;text-align:justify;color:#000}
</style>
<!--[if IE]> <style> #comments_URL {display: none} #comments_HTML {display:inline} </style> <![endif]-->
<div id='comments_insert'>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":1) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKjdqpKj45pGiJkQR6UOmMaiP7YIkHxYNCdkq_iAhivVzWhYr6ezVVwTeEJGgKmm2H7jnKxRpXxQVP6J4pDtl3SJL-c-m_OOec4VFq0POZM48PMmjOdE_ikmL_2vUi-yBNI2pYFPSwU1TW/s1600/49.gif' style='border: 0; padding:0' title='hê hê hê'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":2) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBzYFMct96QNBtVUXeI5jWwJDoodrcgt2rze46hFdKGiF4VP0_IBHuXiUV-Tte5W-QUmcy0AhehSDO4K_tQeMyYBWz9qcxo0u1aTF__EmxdMTtc7-2Q6ryM9-OJoRXAUAsh6QiEuHFQBX/s1600/102.gif' style='border: 0; padding:0' title='hôn hôn'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":3) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvuUm7gVqFIpViH0GvcGHh0kwcwN1FK-sEkALDsU70DphoGvgsvhrP7j0fnyX8y0Hw2CDKfjUqTqZFM5rxLX8Pk2PEzJAJqLRvkDRgm4IUktixqgBjXTUrY8dLH4CCfvgcaQTXLG-ibobf/s1600/113.gif' style='border: 0; padding:0' title='ua ua ua'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":4) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4p3O77HP1x6j6VjglGp20HNNxinmuzc3PQjwZTccdV_UUkuR_DbKjo3gln-ED8WqSeIqxkDz8Zra-lFLf63tWROTbYDBXfiOQ2eOqahqKGFIVcBOknQUafvTBj5QQ-w7l2y_IHW7hPXLD/s1600/93.gif' style='border: 0; padding:0' title='nhìn nè'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":5) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTNk9WTlhRBKP0oWGz-mUMlfU3IpBqIWd-MqLsKEapRrf2a-2mywbHXanVASpJB_adZ3RaQutyeQa7xQi3oTFJqYVU1xSXOtrLd3KUE0CqC_zwHmho4z90ixjUCNzdLGoyK6daVDkUyoxb/s1600/61.gif' style='border: 0; padding:0' title='vỗ tay'/></a>
<span id='smiley-more' style='display: none;'>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":6) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOCK4RcnX7X9Nqlsy4Ymv93EuhUcpBBvV97kcTOoFed5PNgrJW2KEfaPVFVr4Y29SgtDJtTPeLDKLGx6Tz2FeBSQdE4gDPlH98xLBC9X8yTapGW4Dpb7u-iccGi63TIuVzuMrVLslvlc_/s1600/134.gif' style='border: 0; padding:0' title='tát bớp'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":7) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjWLQgyGl6uKK-48pbO4mCXVASnHoqSIQTF9wD9AFTPoEVqZaW5KuTtUpcyZmcShL-jpBsWKu87MG9j0UfCJ3y7MiGx5A6qfJMXp_GlRYG5cESjSfIu4KnzXy8nYthLuL52U1NcS9frVxW/s1600/39.gif' style='border: 0; padding:0' title='rơi lệ'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":8) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiSsCoku5mv4XI_7VcYWzbt-3p5d7eMJFGH9b2Yi_aDDjiEJHpunNxFZ7m9zQAbmaGR939vIMv0MOSuOTCuCj3hC-T8pKb6NYXrppLQOiqqYf3CsoTqqUNkgAxERFBQL9UNqh3QkiULziC/s1600/106.gif' style='border: 0; padding:0' title='money money'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":9) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj99cNdahfgX5rKkE1-Mjeom8Q8PWBKXh2K9m1gz-E8BAiVkAMyGJF0nVnnS_yR4r5H6YqjFHppy9R3WYNa0_FDOL04_L9Z-kv-xsAV9RGbP2KwXzbTR2ginEdhktldAcmrKPMI4IpeH-gs/s1600/43.gif' style='border: 0; padding:0' title='lêu lêu'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":A) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvM8Oiza_SjKEfteKObHxTG2FmbobfkfQAruu9vuCi8RCHpfbGibSFeAFuVAwG2R7_YgtHs1Uhv-cTz9TJ_dWCvNXCgfYWHwe_QFpvCZouUadIMXOFvnof1C8CmdjiLPQGJa249bgnITO/s1600/111.gif' style='border: 0; padding:0' title='lắc đầu'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":B) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh73k7jeMVEVZD90YIkYfvx8qQEGKuqcjsF04h7MdHw8aw3BqJkUv2czigcwUNdJysrcl8a7rF6ZKBf_LwO2WJZ6xXHSLcz45ccjrQwP8gxhGb5oiAWBVD8vQBUx12xwc0r7zkLDzWBZbRA/s1600/48.gif' style='border: 0; padding:0' title='khóc ròng'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":C) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEKYBkHPcx7gNUdAP2c9mo4Z6S-ekKjA-ztDMIU4IDGQdAt-HaggL0e9hCun5CKD4kzOfxHRpfz94LC4JrJwij_ESFWgAfr4iBoS2oKVi6h-LYqZMOHMtbKx-7a0h1bYQjnAY3WLZxgFAF/s1600/54.gif' style='border: 0; padding:0' title='I don’t know'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":D) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxo1S4hfkBrUwAtOJnFUk7tWotIUAx6e4tY80Pc4hifs07T8FV1IvbdMuD_V7So33CQBL6BaBplp6zsWb-hc-cbTGjLIzcXFn3ehr_Sak8fALMx4xkGNOzw2Nekyx0E7pzVT0jOfS6AxW4/s1600/63.gif' style='border: 0; padding:0' title='hi hi hi'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":E) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkV_mjcJSNDdeuCH5ZPqfIhEkIjqIXsU6B5R8Gzps0JRqpftxQXwvrkCnf5vAxtbM347RF6b4yYfptA3w48ibKetu0RcxlbIqtXSSSra2_Wnpa4Tp5GpSZl0N5CuvaJhX9nk7HZx-oD_o/s1600/100.gif' style='border: 0; padding:0' title='đá một phát'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":F) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHjQOZM20_CfDT6pOZ2e0pD3XT_uO24oxwddx79G-OKsD0j2A1ue-sVIf1QJUBvQ7unLJkhieyeyj6jaTuPA6SGBvBOqhI6B1gWWsJpGNAs8b8l_8Yn9y72yiD4WLfwWSY4VJnttvNaUT1/s1600/45.gif' style='border: 0; padding:0' title='cười lớn giơ răng'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":G) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZF8cnOMZONwR-FbznfuJ-u1frTcKJYu-tIKtxdb9xoAIXj3ODT3zVC3Th5sjYiUJcICOCV6syRtVOtTbvu3UR68QL5DTT_x24oFZhnF9cupCL8UFwuCglX0t4hSAxeEItjrkKlCfqCGm/s1600/77.gif' style='border: 0; padding:0' title='cụng ly'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":H) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidCxlIizYWQ5KmfwpCclk5Qcw9nnwfoVP6PBZ1PRi_dnu6HXjfFuuEmPUbIL498tqdobs7y64pzlCl-d-QgIdpp34p_yy_U21f_DQdq-A9kEdbZkWZQwfanSh6d_cJKd_2eQbCkMErw5wr/s1600/86.gif' style='border: 0; padding:0' title='chém gió'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":I) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsaaCGPJBHUadYDQ_CjBSy7S04wxn332DLgwwsL36PUzEN_UbrpC-T9MIP4QhwuWj-TJ3eIZ8nCPQ_YdboMpOW91YYh9uKcY4YH9doaLEzZUBIiOnve_qJkVDjgSuYO5b6EL5V8FWUEXEq/s1600/94.gif' style='border: 0; padding:0' title='bắt tay'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":J) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJHmLOPneSERKa42QigisMBYhkwx0LRiB6CAgCJfIHzrE9N0XSeHqsnn5unEW5y6AXdJRY7bFRvtKyb_BTVJ2okY4rgWX7Mac8YELo-91DcpPivx44-308y7a2KLw4R9VNYsPQ9tUIpSI2/s1600/83.gif' style='border: 0; padding:0' title='ăn ăn ăn'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":K) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjo1O6gOLPuSXw7zGQJkz7DAZDN4T1HqLruJq6EzP7t0Swaf2S76m3DksSMTVsLqpXullRLRnNd20VNMBr-w38-yglb79MIz_8H4Tnwddf_RzkqZnz319EA8iVNwzwTPu5yb5OobKzxJ8t/s1600/59.gif' style='border: 0; padding:0' title='byyeee'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":L) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo02YuJEz74I6sseCuN5o0i2kePgy3A3bBmi4xE1HqS5nSRYfWAxfpcqlV9aepkEMA3OZqsU94_2AWI9YmKcgJFQGfVFfmWs6Giv4DnmiSyIIlUG7k9Hw4dzmC7YuZfMziVmIapQGJkWlA/s1600/soldierbaby.gif' style='border: 0; padding:0' title='nhóc lính'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":M) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdJKuHXheKe0rC6q4K43oacMOf2m4fZi-RpRwlDMnjtZ1Rej0Z3ZcjwECqmqPa8i2CbQLfCFRNJp0EcAFfH8kRq5bU7JAMWN7awGj-MAoh2kHSgwjdSvcMviGkh_T_TbnZcRQClclJ3uu/s1600/alo.gif' style='border: 0; padding:0' title='Alo'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":N) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgq2M28KtlTJfAo4DyF0bQGXDhWIzV3thTqq0S1kRo5L5749aygxarJc4N6dufrSjH_chyphenhyphenwRzIq6Vz_GnREnTtBRy5vJBsjoTRRi7KBvGoJwMx8Aon2qnKQWJ1GxVOzFW3kTUycMMh8PYP/s1600/shutup.gif' style='border: 0; padding:0' title='Shup up'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":O) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY3sLg4LdFpNB_PKor1M2LCG6n82sN-cJY_g417MfFZ-WEW6ELw7NqwbrdoMxUUbDatEgJ0K-6tAGVPJ0_z-nq0UMaMQVM9QioN40ZaLY2mwWCqNDuuzny0IxijtndFkAVF0wyp_TlQjuB/s1600/yeulam.gif' style='border: 0; padding:0' title='Yêu lắm đó'/></a>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").value += ":P) ";'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicEIyI17OzuHeZffjIWwWZhAjeYwc0MspWK3UMlw58pcqOiirN3MBT-M1DBTNM7Va2BTqYK7yJ9fLiasDWYlTEJzjdQQ4Q5SxUNLmrlLZkz4LGC7AG3wj6We388xckCiy0mCkem_h2OWdX/s1600/datbomb.gif' style='border: 0; padding:0' title='Đặt bom'/></a>
</span>
<span id='smiley-toggle'><a href='javascript:moreSmilies()'>
More →</a></span>
<div class='text_style_wrap'>
<a href='javascript: void(0);' onClick='comments_B()'><span class='text_style'><b>Chữ đậm</b></span></a>
<a href='javascript: void(0);' onClick='comments_I()'><span class='text_style'><i>Chữ nghiêng</i></span></a>
<a href='javascript: void(0);' onClick='comments_EM()'><span class='text_style'><em>Chữ nghiêng 2</em></span></a>
<a href='javascript: void(0);' id='comments_HTML' onClick='comments_HTML()'><span class='text_style'>Chèn Link</span></a>
<a href='javascript: void(0);' id='comments_URL' onClick='comments_URL()'><span class='text_style'>Chèn Link</span></a>
<script type='text/javascript'>
function openup_parseHTML() { window.open("http://ha-escapexml.blogspot.com", "followblog", "height=540, width=450, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no" ); }
</script>
<a href='javascript:openup_parseHTML()' rel='nofollow' title='Mã hóa code trước khi đưa vào bình luận'><span class='text_style'>Mã hóa code</span></a>
<a class='tooltip' href='javascript: void(0);'><b style='color:#F00'>Help ?</b><span class='help'>Nhấn vào biểu tượng hoặc kiểu chữ hoặc chèn link sau đó nhấn nút Chọn rồi copy (Ctrl + C) để paste (Ctrl + V) vào khung viết bình luận. Mã hóa code nếu bạn muốn đưa code vào bình luận.</span></a>
</div>
<form name='comments_form'>
<textarea cols='70' id='comments_input' rows='1' style='background: #F8F8FF;margin-bottom:7px'/>
<br/>
<a href='javascript: void(0);' onClick='document.getElementById("comments_input").select();'><span class='text_style'>Chọn</span></a>
<a href='javascript: void(0);' onClick='document.comments_form.reset();'><span class='text_style'>Xóa</span></a>
</form>
</div>
Lưu Template. Trên đây mình gắn sẳn 25 biểu tượng cảm xúc, nếu các bạn muốn thêm thì có thể tự nghiên cứu để gắn thêm vào, đảm bảo sự đồng nhất biểu tượng theo thứ tự ở Bước 1 và Bước 2. Những phần được đánh dấu màu đỏ là những phần bạn có thể tùy biến theo ý thích của mình.
THEO: THUTHUATBLOGGER.IFNO
0 comments:
Post a Comment