Salam Blogger. Pada kesempatn ini saya akan coba post tentang cara mudah pasang emoticon di atas komentar blog, kalau anda tahu cara ini sudah tidak asing lagi, mungkin bila anda search di google sudah banyak bahkan ratusan atau mungkin juga ribuan yang sudah search tentang cara ini, namun saya lihat sangking banyaknya permintaan dari teman saya yang inin mengerti tentang hal ini akhirnya saya menyempatkan untuk post topik ini.
Artikel ini saya daur ulang dari artikelnya kang ismet yang menurut saya, beliau termasuk salah satu blogger yang menurut saya layak artikelnya untuk dikutip. Langsung pada caranya:
Cara Mudah Pasang Emoticon Di Atas Komentar Blog
1. Simpan kode CSS ini di atas kode ]]></b : skin>
img.comment_emo {height: auto !important;vertical-align: middle !important;width: auto !important;border:0px !important;}
2. Simpan kode di bawah ini di atas kode </body>
<script type="text/javascript">//<![CDATA[/* Blogger Comments Emoticon* by Kang Ismet* Url:http://blog.kangismet.net*/ki = document.getElementById('comment-holder');if (ki) {zx = ki.getElementsByTagName("p");for (i = 0; i < zx.length; i++) {if (zx.item(i).getAttribute('CLASS') == 'comment-content') {ki_emo = zx.item(i).innerHTML.replace(/:\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwXAAwJ9UNG7jQjYbcJsy4zJBy93n_Gz0XnrhUbshveX-MfHkSxRRBpDYgYAaXRKjC3IxYaCJkjiQG4Q50weD0js2MaQ3mzFe44nAxaR7pqHMq73ef1uJZ7HK0gRiaabf0mekpziGvRxI/s1600/smile1.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/\^_\^/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7H6k_Gt2YBn_5x-UDpzZ7H8UAeZD7z4uRHeZKAhTeS0n4pfI3J8H0zvl6d6GZ-lLdv2Wgs1gPS9AHLPJH3Bcvk7rOLhfekrGpOvXKFZ55cdn3414Exd1mWsuNOso2kv_-oFjop18IVVU/s1600/smile.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:-bd/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGVpHGVJCJpkl799R3D5Srs-cHtS7sO-IfoOiF-9Bufe2XqCSk8Rj91i-CLmYLRtaLQCMe2HMQbcM8jOXFm-mI4G7Q8EHV01tjnyq6X7MnpB-XwaQEu_XeoZBXd4nLHCWYwo7PWuS2hKM/s1600/thumb.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:-d/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKnklLJhDB2CFGBXfB0hcIi28zUzNFi9TC0zQ49MsDHeuhafmh4qIUrPofxJ0TXhVZSfRlU6oKTyaJcy3zpV5wd27BTE43gKHQ0jgCPbb6HEhWDYMPyemDi4nsF-3w3SWNfK-bK1rRioA/s1600/thumbsup.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/@\@\,/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWUHcNb3uaQN6gkHZJJNxARfPmekRqPKL5Ok0iUAIp3btSZMA24Nlw7AMqdIyLrG97J4ExqmiZ3A5gXReAJzswmruwqtZJlT6CI9JLsKraU35_VItrGBQebnAIJzns3QNIx41C1IQCEpo/s1600/rolleyes.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/\\o\//gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYaBIVvKsOjHkkwh1Njr-tt2mKABkzDcYaoYyFrpFRR1thIsFoAKuMSA2jSdXMPPqtRsPxv17A7wSNxdNj3p5p0OkQg9pTcQh0n2W7_zQotzA24omvg784KS48Qv0KnWXhRJjCGfDXPpQ/s1600/applause.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/=\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiENIy6uVwRZDdvGxyGLWzSL-XbjHv2dlPKdqkC6kZMeFcfqajSPYTYWkPH520uc5otkBdCMoR32NV_HJDVZBGQ1e1g8Dueios8_B4XX-NS36XKU3Grxh3Ov6yjtfRlJSscxiDnprHmvrQ/s1600/sadanimated.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd0Q0mRFXYyI3IIl6RGA5rzFdSXQYhilRENCjd7K2F4skVM_bXJg2Qf7tTORLB-GjcFNtVIzMBZZ6tx1aBDKbC1xQHgAXKmMhTvshksa_muoV4nC1CZ8Wd8_emWUBEcpIzFfLNqHl2sMM/s1600/sad.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/\;\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Eo28yoVu5QeOG_GzgSf7sVujxe6TNiebLBf0jHrb5j1XGD9Ql3XtMJjlC2UvgoSW23QeIXjnb97J2Mvd7koyvJZlksIHZVty7-E8K9naFeOE_7rT4adPq7WqJ5TpMPm5_vPl81ntF3Y/s1600/wink.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:D/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg06N6lekbkd79tu99k7tibYUiArEefuxVa73sxKPhvR2DCdFxogBecBA2mpj_b_7x3TF3bU7q8_PTJwj3xyVpbqvSAvXz-eyXyaajoJtsv2Ig5XAMj0k3X770SFMx34jaYvkSYBx3Wwm8/s1600/icon_smile.gif='' class='comment_emo'/>");ki_emo = ki_emo.replace(/=D/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbtBUYSuxtLouUQlkp2CxDW7AksubNd7CG-XTTW6aRAPAdCMFQ6T3i6bmncUE-FDvq8oQexdh8SZO3y025g-xYewAR4JK9v7C_kRf0jNrZqbBe8znEzLkvmKvSQc8m8YaH06xi5n_yi0/s1600/hihi.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:\P/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-feq0j_Iqe3DyZIh4d_OI887niARp173NvVC_WP40dQboew0DuVmvBajsD3DxVI2o8pG3mNBnLyeb2LlWei50f97mHHgrq4sO0zk_OpSv4_ljQlY05fmIdlMyeUmcCrC-z_J5pSCetHY/s1600/wee.gif' alt='' class='comment_emo'/>");ki_emo = ki_emo.replace(/:\p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-feq0j_Iqe3DyZIh4d_OI887niARp173NvVC_WP40dQboew0DuVmvBajsD3DxVI2o8pG3mNBnLyeb2LlWei50f97mHHgrq4sO0zk_OpSv4_ljQlY05fmIdlMyeUmcCrC-z_J5pSCetHY/s1600/wee.gif' alt='' class='comment_emo'/>");zx.item(i).innerHTML = ki_emo;}}}//]]></script>
Nah demikian sekilas tentang cara mudah pasang emoticon di atsa komentar blog semoga dapat bermanfaat dan selamat mencoba..