Itulah mengapa banyak pilihan untuk menggunakan emoticon di komentar blog, dan itulah apa hal yang kita akan lakukan yang sama dengan entri ini. Kita akan melihat bagaimana cara menambahkan emoticon dalam gaya Facebook, yaitu dengan emoticon yang sama menggunakan Facebook di chat dan dinding. Anda dapat melihat mereka berjalan dalam blog Anda.
Ini adalah emoticon Anda lihat:
Langkah :
- Buka akun Blogger Anda
- Masuk ke menu Template > edit HTML > Lanjutkan
- Cari kode dibawah ini :
</head>4 Pastekan kode dibawah ini, diatas pada kode diatas :
<b:if cond='data:blog.pageType == "item"'>5. Lalu, cari kode yang mirip dengan kode dibawah ini :
<script type='text/javascript'>
//<![CDATA[
function emoticonComentario(emoticon) {
if(!document.getElementById) {return;}
bodyText = document.getElementById(emoticon);
cambiarLetra = bodyText.innerHTML;
// :)
cambiarLetra = cambiarLetra.replace(/:\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEili1f1RSRP8lDCZYWdVWdR2uWUa5Fq7o3pTlYNybFK9BD5gfYoSN4Ckowjxl9X1CZydzGrdGqS2s2OXuMaYaU22rhgnJua3aF2WvHhYSJ-2wWAZI37l11KP0_E3wFixz7LWoAyqO-rYlk/" />');
// :(
cambiarLetra = cambiarLetra.replace(/:\(/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7u1P7mkD2rxjH8OZ7s6EjoeI-B7zccbBuB_6Uc-9eG1ENZP20Lc9O0R4Znrg4_HdrIDFwJDab1Fy2TnNoqVIMNDrKOrk4-tccyacV_q23RajrOLhaAVZc5rBJ7XqqKPO5kBXCDNKTDM8/" />');
// ;)
cambiarLetra = cambiarLetra.replace(/;\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtV4HgCAsV9XRn5XHbjOzOmIKxUTGfYBcq3sF_Kof93SZpuv2cqKhiTqbhpzwBiBNuInFJDhpSv6_SSO5jwR4vpOYst3U8V1xp5qtRTNxCqKu9WtLgHVMfOuZ2-xO-KSM8FPPtKu8KZzc/" />');
// :P
cambiarLetra = cambiarLetra.replace(/:\P/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2PR9EKjvBHJj3-i-rh2APJm2_K5k5dks_dxo3GH0DotjT_c9194jLVPRszogntEr-4KVsIO-YKT1kuwziZ0Y9yJDB6xZcwJautthqGQc9nvrwmxgiBaWzD407LXs1HONEgJCfRLvBkQ4/" />');
cambiarLetra = cambiarLetra.replace(/:\p/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2PR9EKjvBHJj3-i-rh2APJm2_K5k5dks_dxo3GH0DotjT_c9194jLVPRszogntEr-4KVsIO-YKT1kuwziZ0Y9yJDB6xZcwJautthqGQc9nvrwmxgiBaWzD407LXs1HONEgJCfRLvBkQ4/" />');
// :D
cambiarLetra = cambiarLetra.replace(/:D/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRSxU1eEmGS5pu0VowEyLw4ju2Ntou_qEAVfaHyLHHyYo48PDJMCjV2srGfCYb6Gaa-U_28LIrNn4-ljYOhZYkp4z9JLCZSl5a7Vk41lU_mzYSHN8QwLAduVpZHZx5cYTaP4P4EB8EHuU/" />');
cambiarLetra = cambiarLetra.replace(/:d/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRSxU1eEmGS5pu0VowEyLw4ju2Ntou_qEAVfaHyLHHyYo48PDJMCjV2srGfCYb6Gaa-U_28LIrNn4-ljYOhZYkp4z9JLCZSl5a7Vk41lU_mzYSHN8QwLAduVpZHZx5cYTaP4P4EB8EHuU/" />');
// XD
cambiarLetra = cambiarLetra.replace(/XD/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jXhi0FH5vayBwp5d1FzfX8NP9teYva_y_KtgLSSIurGCtFDKvDX5CPCQ4EUJnCMVzTforRtE7U76ONBg6HO2ZIihlPvfSgvqSwqbR3mfrLDOxdjl-sjWwbxr4pr-Ufia3udykWON7hk/" />');
// :S
cambiarLetra = cambiarLetra.replace(/:S/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdwhBqdy0ZJuXLqfrnCR8e6uf5KID-I7rCrVPGFYyGUgpiyWMr7uvLYpnA0qzJ7BOEBkq9lYZhptsRoWgfUNIgIlTSS2CYDqfBSCstl1feZ-RltLFobQ51bOJsAYJYBKfQY-3v78bmaY/" />');
cambiarLetra = cambiarLetra.replace(/:s/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdwhBqdy0ZJuXLqfrnCR8e6uf5KID-I7rCrVPGFYyGUgpiyWMr7uvLYpnA0qzJ7BOEBkq9lYZhptsRoWgfUNIgIlTSS2CYDqfBSCstl1feZ-RltLFobQ51bOJsAYJYBKfQY-3v78bmaY/" />');
// X(
cambiarLetra = cambiarLetra.replace(/X\(/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX6LI_6D_BrvMqibHI7UB5OansSeuvpL_499TUe0jrgWNV2DtRichHVw8iv1UTyKk0OMPTrn2yw6-7OIbOGXPnYa_gST6BJR91UUb6nc9MNB73y-rq03pPffOEF7QBx2NQS8IS6WssnOU/" />');
// :'(
cambiarLetra = cambiarLetra.replace(/:'\(/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiSORQS97zO_1ZkQZcTjVMW243Q-7TQ5C8DLr4-SGTMa27E2E-Tgc-GGa16zPIjpzX1D2AZaVwlFcVxnoikLYAUgSNNSj2LHycexzFl7zGUy_q9Xbt_z6rmFJXnxVy1Qbdl4kBM23bqYY/" />');
// 8)
cambiarLetra = cambiarLetra.replace(/8\)/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0HPUAuWH4RmHGgW_5_ZAxcinLLeAcXzOD8A69TIHPn9CRmwbbG3SZA_L4wI93QM40wO7nGeKdlRwGYDh_vYnvqVQEKIZpwlXucLIfhANG1KXyGS9awE0SDA8WfZ8gZSLTqqqWS8ERFlo/" />');
// :O
cambiarLetra = cambiarLetra.replace(/:\O/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmMHm9udA2huxU8ZykNQ_ygZWU63ZnMViJjYtklgXCjCzPtHgdb5Brqm8XI0gM7ssewyA2QSbxJQopb9b3wpUmoJ_lFdvkkAg7uuwj55c5VhbjAJhHE0PiQxZcLWsRi-xawRRGdkzkzQ/" />');
cambiarLetra = cambiarLetra.replace(/:\o/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmMHm9udA2huxU8ZykNQ_ygZWU63ZnMViJjYtklgXCjCzPtHgdb5Brqm8XI0gM7ssewyA2QSbxJQopb9b3wpUmoJ_lFdvkkAg7uuwj55c5VhbjAJhHE0PiQxZcLWsRi-xawRRGdkzkzQ/" />');
// :*
cambiarLetra = cambiarLetra.replace(/:\*/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8fbDSvofWXijPBg2BfEbDD2bd1MpQw0yOVw3edkRWhUy8VluaLBkBN0cQOzG_rmGRBs2xMEo_cAAES6n5imGAdwFbdO-NFuW1PupOUQoEquI-45Yk0R0D2HautyKCXqHU0pivo1zPdI/" />');
// :A
cambiarLetra = cambiarLetra.replace(/:A/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU2riODiDJoNoMYWXPY1XX8rDVMw1vMOOnzI5zsyW0FmLe0Uc2kCDc11gADkgfXPkkhpAvGubxGh2rzBYq9gt51Jge-CqLVJTGJ-dPSBX6j4_TLgZamG9DlRMaUhMa0CZ-eYSi0k6cuMU/" />');
cambiarLetra = cambiarLetra.replace(/:a/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU2riODiDJoNoMYWXPY1XX8rDVMw1vMOOnzI5zsyW0FmLe0Uc2kCDc11gADkgfXPkkhpAvGubxGh2rzBYq9gt51Jge-CqLVJTGJ-dPSBX6j4_TLgZamG9DlRMaUhMa0CZ-eYSi0k6cuMU/" />');
// 3:
cambiarLetra = cambiarLetra.replace(/3:/g,'<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-_u-Mvuh4FiEaecvG9nEgwF0SrRyjkhVE2nfVl4DtqjmbivYDbqG-cWGlr-Z3Aap4TUSiDHU-3ZM95r70GifLe0ZMoCIpu1om7POAfIqtpKthFlZgW_kQrXDZ6WM6QvdpXBwM1RoFniQ/" />');
bodyText.innerHTML = cambiarLetra;
}
//]]>
</script>
</b:if>
<p>6. Hapus kode diatas dan ganti dengan kode dibawah ini :
<data:comment.body/>
</p>
<p expr:id='"combody-" + data:comment.anchorName'><data:comment.body/></p>7. Lalu cari kode dibawah ini :
<script type='text/javascript'>
emoticon = "combody-" + "<data:comment.anchorName/>";
emoticonComentario(emoticon);
</script>
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>8. Mungkin Anda akan menemukan 2 kode, tepat di bawah kedua itu, tambahkan kode dibawah ini :
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDZ0EyIOG91D-JSz2rpSuLUXBZTamTPHxlvYJ-N068cPn-wS0uYR45ZmEmT2SBaf_L9xdiFTgdWCTqu8Ykq69YY2xfXpoxzYyJui7olPVFw7gAfp4gzsfRUaZQZOl_CcKUyomMvZBdW-o/'/>
Keterangan : Itu adalah gambar yang ditampilkan di atas form komentar.
9. Save template Anda
Rekomendasi : Cara Buat Facebook Blockquote di Blogger.
Terima kasih, semoga bermanfaat.Sumber artikel : http://ciudadblogger.com/2011/07/poner-emoticons-en-blogger-estilo.html
Sangat menarik. Terima kasih Sob!
ReplyDeleteMantab sob...
ReplyDeletethanks sharing...
mantap masbro
ReplyDeleteDOFOLLOW BLOG