Xin chào các bạn, đã đến với blog của mình hôm nay ở bài viết này mình xin hướng dẫn Mang bộ Emoji của Facebook mới nhất vào Blogspot đọc tới đây thôi đã thấy thú vị rồi đúng không nào, vậy chúng ta bắt đầu thêm Emoji của Facebook vào Blog thôi nào.
Cách thực hiện
Chèn đoạn Javascript bên dưới vào trước thẻ</body>
<b:if cond='data:blog.pageType != "index"'>
<style>.nguyenngocquidz_emoticon {width: 20px; margin: -5px 0 0!important; vertical-align: middle;pointer-events:none}</style>
<script type='text/javascript'>
//<![CDATA[
function replaceText(){if(!document.getElementById){return;}
bodyText = document.getElementById("comments");
theText = bodyText.innerHTML;
theText = theText.replace(/\/\=r/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6L7aTYl568_G3lvUpEFCyEQ_kQPgm2fGLfTAzsmIhwK6GSAI4N-3kjITvXi7qShU4acagRUxUcfWpsq_eA-eqW5SBSTOS09J7zW5cmybxpmuoH8DGHaXjy5JeeSSOiW5RuoshyphenhyphenFiJcwM/s1600/Icon+Facebook+%25284%2529.png'/>");
theText = theText.replace(/:\)\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-8efu7H-v3fcvOn5TveLOYDBpD0rCqHm-mQItr3xgOd7L6yKnUfOZ6c2UA5JI5JmrlKiCmPV4qVVJstdqT5TfL2QbEsOmvEU6fNOTXxuBT9SKL8xJPA4qNAbdU6lbATG0lIuOQoB2nQ/s1600/Icon+Facebook+%25288%2529.png'/>");
theText = theText.replace(/;\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG6E-dKjyLt4Ffvz03WQ144XKcO1RSrjgOz9jpmx62DpV8VsthN3M3AN8DDjFSUDnLvNiHpae8_HJ_wxZsuTWO5c_fpuzKh3hxc3fpglZJGi-4fQxRuXyIhvHSVwjP6oAaPdFqRgYVSFk/s1600/Icon+Facebook+%25286%2529.png'/>");
theText = theText.replace(/=\)\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZz_5siO3-hzVdsdVWI075oY4RvIIEt_aj1EIZRPyDzRnx9wskhC5SUqxzcGtgsipuo-HL9yay4YE4Vux_wiy0jz9Xs2fftLc7z-1zVCaZ_ueEpXFpyYQqY5GEmEmM6bcegPVCYhXadjI/s1600/Icon+Facebook+%25287%2529.png'/>");
theText = theText.replace(/:\(\(/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9QyKeEB1GzyscIgX7DdIZQRA3ueRRp0QOwTnUT8KsnJIqXkC4xT52YqWXXenSH9xEcQj-mlNKk3OrZOZai9J3puTibQeI1wFDeCIF1l1ss-E6bOsLlnW4MKA6616cM00QKBtBpVZUao0/s1600/nh%25C3%25B3c.png'/>");
theText = theText.replace(/<3/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1faWY25lcaZnZ78wYYHETNhjQ3ev4xAn1BRv0BUzFw8oEbHntwS2o1jsUZgLIr5xV5H8Yh0AYcNIlqwvbU1kONB64Dgoj3lOQBpUCChrfn4Mza5mV0On85oXRoVqLcuX4FnWLU2jTrVc/s1600/Icon+Facebook+%25282%2529.png'/>");
theText = theText.replace(/:v/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv9-_u0ZRwreWJttjN6WWWVv4dNk_98QstsNUKqmRG-H3xUzaT8EOoBBrcUib8yBSitJxCKcKNfSnnXZ0JUGKxh4kpDOv_rUXVUcjnjj8V8ASnYubjOuSXyzwiWugiQLcpQ85Yow2gd68O/s30/pac-man-emoji.png'/>");
theText = theText.replace(/:\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGLImZfuh1aVt1Yu8cVAkGAeTbsBl0hoo1jXmDPT6fJfumq_4M6d2VlatCk7OVIMh47Ra-wlQ_cWHgY5OqCWf9v6NYmrGCGxDcPT81i-qQ1bdYioaYOMylsIqM2Y7b3x_zvg3mZ7UnCKc/s1600/Icon+Facebook+%25282%2529.png'/>");
theText = theText.replace(/:\(/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheBQHcWp9VYQiEYpF05uZS15bE2-p8AwBeXzgYhn3wcd4yiBV7y23g6rzmyAdAXXd_3VxJXKKKVFoySw5v0v1Q1fYasN946HAotbTnHgTUahWGrFKFlJhLTNht_1S0B39-a3728HNCfHs/s1600/buon+cmnr.png'/>");
theText = theText.replace(/==/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg684EwQZ6aFpeceXTBS5NEKqsBh24t0doNa5sOWQZoAdh-f-zhDPP0_r_u8z2FGST-wMxDDhV56lIT2rmX9PHt0YZcSeU_y2_85wQ2gRFiiUZZpRrbPY7H36C7CsfcvX4GvLPINnz4Ew/s1600/khoc+me+roi.png''/>");
theText = theText.replace(/:\*/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPWX1Se_uIouJVXIjN0XpGxXkzNOIvhkYBExQk1_hhcfMIDvrk2LzDu-Kwwm9AJP2RgH0XiirLeoprRSKEc8hicw5hCSptTlKybwsdHeq-OcyHhaaw42wm6mdNxH4kp458yj-62TpcyFI/s1600/hunne.png'/>");
theText = theText.replace(/:D/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvGLEn7mJMlYMwtiDLOTlJxWdkRB0yddqTiEJUkiG2NgizaleAxWu98ilwGjM_x8JFtY-5GdpkIakVAKYEytSz5-5rRAZ1eszp8Pygsp9ZGZdAVmCVGRK1jR-kA4sWqRSPjfmqm6s4Juo/s1600/Icon+Facebook+%25281%2529.png'/>");
theText = theText.replace(/-_-/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghXSeFxMj034PR2iIrhUuuZxdCpGEHlTEthqWJacJUhwKmq1DEutetjctpZEifNARG1pV9Tc8B2stZftkJ6RrjK9sxDWTyc_VNe0K_rvo0TpClqUTXu6MbqxEy6bf15FTfnblwScfa2tg/s1600/Icon+Facebook+%25281%2529.png'/>");
theText = theText.replace(/\^\_\^/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF05T0t_B0tA-kecVDXegAhjnh31rcJvdJWDWFFjOLwtkI_jsgHcZXlQq4Luo00n6_S6Sb8AGJW0MEH7EOKOFZHkDV_jmszWlAkcFMgtuUZFUE-TcmJ0RLXQUl0cQRcMYM2cQmb9dBdFY/s1600/Icon+Facebook+%25289%2529.png'/>");
theText = theText.replace(/\/=s/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirmi7mda18HDgZ0T7IW_aKc1dmDnDfSmBp0QRRV4Wov8OPkcw6JWzTdZE6ngH9RhGxOTZxsMCcd91ZSWPcdZ0BIPMLeWftW1m0YfG5cmwGEeo7avEmG3HnmQ5FDz8gq2DAXEXjMYUFPl8/s1600/cutne.png'/>");
theText = theText.replace(/\/=ok/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUofulYEK352fsvAM9-72VjiLuH51lOHgJrbPGZWaaMNsRo7HOPSMPnKKPq1xu6uA3a1OkuV0QfK_QIBT1us6tfJV3HIpBaJed51EJjXaNDQKSvU_llZOk66q3HSIJOSzyEC51ZPRcW9Y/s1600/ok.png'/>");
theText = theText.replace(/\/=hi/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwwHyWI7lYYm7u6aSgC0KQt6x49X7jxkeIzGZeUE356Em_nD1S4rUj5MNwy70R4pP08L3UJwAL9dvHN3EJh1MNggXmTP8EhytgSHERLIzGFOJ_6JPfTZdNhu5sTftiF6FcmlDZYYPvhQ/s1600/hello.png'/>");
theText = theText.replace(/\(y\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8bYVyhdZetSSVhN6N4FGQGvKqD7Ca0rVpQ3RdWlcYMp8u2Hgg6yqDjPjAjzBDM_dtuJaMLkXTl_NKIvezkFcxyfysZo6862uRYkSr1zJMmuGQZ8hAau-OoNJE1eaoqtNjeAFTMaFetfM/s1600/like.png'/>");
theText = theText.replace(/:p/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmhY9BquaOF96ybIyky99koOJ8wwqXGA4keIzsZ3Z7hwSjlxY3n0UwvfdMpdYp065rRT8UrIDqxZ0BCRupi-Pg3TAFpnQZS9TLma61UbFeougHu0MwaQSjGPGFbMvmsDnfFUx8Rn3QGyc/s1600/leuleu.png'/>");
theText = theText.replace(/\(yy\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5tvaHCb3-kjMQvNwMhOhaVjxoiY6ZMUQAl8UbTqtqn8fwkv5K142E2_VRJ496Utr4HdlPqXAp9-ABVy298BEcvnCmOJisE3oS_gYzjdQ3L8E93ifUGjJoqG-toFWKtyHOw9nJ3r5cU6g/s1600/ga.png'/>");
theText = theText.replace(/\/=l/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVIZUQIbRaqDBoZxnZrIpCPBRhTkizD-gf40kDLJGb0cIuGf8Aw4_DUNFSQYNvld7WiUmZR6Ay_8SKp0taf0LOoQWFcT2qGyPgMZrZKGtQFb20UkcJQNlzxPkRlBks9FP-xuzyRnE58IE/s1600/huhu.png'/>");
theText = theText.replace(/\:\-\)/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAJx8vICsIohilCFFcFi8xtUsZKHgmiTITKdl0mRCna1noQgaL2kRliWtDN0BgSTPDenNFJuE-yFpVPc361hN6sFDIZg9aWA_2I0vb1SZFoIVbmnWy8B0oPStzBhY6w5Ul5_FizMA2-e4/s1600/hihi.png'/>");
theText = theText.replace(/\/=hl/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiByNN-RcNYJbL9c9R-eZwNHptCi073Qbq4GEmLz9aJ6lQvWEgDtDpo2XrqIV3eema49ekr0i5I_YCKAqwlOmWNtUfAP3aMAlpAL63ev0t0pU04cCH5kySl1qswCAJDcH-3RYkg1t1wkaE/s1600/lozque.png'/>");
theText = theText.replace(/\/=hr/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieS8seBqHjSjVVZ5-srjyBYAM3foDCz8kxSE53L9VvWKu33_IJRrCGZjm-49BOv4cjwmeX_o8CIsNVLRokXx4Ns4JfnN4U2YQ3OkJpNaYVoQTXCQFmX_99gTKBhyphenhyphent1o-jTHYVrQqznZAU/s1600/lon.png'/>");
theText = theText.replace(/\/=hup/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr_xlMf6R2FZkhM35g_OICiwugvmVwd02fIqUdPl0Hj5RrdFVP98_t1r_QCodO49NMu6lqaSkY1mA823fNJv1O4HBOhnw3I7WJ8KY5JEjBRc70YoJgSjBBFhvSeCA8fR7dDpFqEn5Ii54/s1600/ngontay.png'/>");
theText = theText.replace(/\/=hd/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYB_J1ZS6BdFCsckkFa7Pyg89jb1HIYZJ2luyjwQUA6sAcWITVdLcPUcpVaRiQACHcvBYmFBMZneGYH6ORzhrOUvy45iIU-wGv2-3JXLhwFepJHgwtxIawC-TaTdANQ6nVEHQZAPlFmzU/s1600/cac.png'/>");
theText = theText.replace(/\/=clap/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHxCmuijUIRNU7sCe9vrkTyNL7J5xpFYT1OicG1pDp9OEIExyGGdAEyAAtEd834o6H2F-IvOQU-0h2kWJg9z0_xAHxhsQ5DUCrFK8OXtVWNT0Yp9t-vFDgT3JnighZ8WPVgQ1_08N5HYA/s1600/dap-tay.png'/>");
theText = theText.replace(/\/=he/gi, "<img class='nguyenngocquidz_emoticon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyev4INxrRTE1VZEiB_6InV-f9fIPmR9kpV_SwzgNrOL5b-3Vl774745WPWT6URBPgIUdzJC6ghHzq4-2kjV5qy-Y_bhsBPHtD5RqJqcq9pUcgAKrgI1eAcX1T1HFW1gHidgZ5FOcq2EE/s1600/Icon+Facebook+%25283%2529.png'/>");
bodyText.innerHTML = theText;
}replaceText();
//]]>
</script>
</b:if>
Bấm lưu và xem kết quả...Vui lòng copy leech về: MeThuThuat.TK