Cara Memasang Emoticon di Komentar Blog

Saat Blogwalking (BW) ke blog-blog teman, saya sempat tertarik dengan emoticon lucu yang bisa dicantumkan di dalam komentar blog seperti ini: 
Mulai deh browsing cara memasangnya dari google. Belasan tutorial coba saya ikuti tapi ga ada yang berhasil entah saya yang salah masukin kode scriptnya atau entahlah bingung saya. 

Dalam kebingungan dan sempet frustasi, tapi hati masih penasaran karena pengen banget bisa masang emoticon di blog saya. Keesokan harinya, saya coba lagi dan mulai bertanya kepada teman yang kasih tutorial ini. Untungnya beliau sabar sekali menjawab pertanyaan bertubi-tubi dariku. Hehe, ya itulah saya dengan rasa ingin tahu yang besar kadang yang saya tanyai bisa emosi dan keluar asap kali kepalanya karena jengkel haha..#lebay.com. 

Ok, kalau ga ada kesulitan ya ga belajar kan? Hari ini saya sudah berhasil memasangnya di blog. Jadi nanti kalau Anda sekalian komentar di blogku jangan lupa dicoba ya sertakan emotion lucunya hehe…

Caranya klik dulu emoticon yang Anda mau lalu copy kodenya (Ctrl+C) baru paste (Ctrl+V) di komentar. Nah, setiap saya sudah berhasil menerapkan sesuatu pasti langsung aku bagi deh buat Anda pengunjung setia blogku yang mau belajar. Ga afdol rasanya punya ilmu ga dibagi-bagi hehe. Mohon sabar ya mengikuti tutorial ini dan hati-hati soalnya pake acara edit template yang penuh kode CSS salah sedikit kacau balau deh tapi tenang aja ada solusinya. Ikuti ya: 

1. Log in ke www.blogger.com 
2. Klik Template 
3. Edit HTML 
4. Centang Expand Widget Template 
5. Cari kode </body> (caranya dengan menekan Ctrl+F di dalam kotak) 

dan copy kode dibawah ini (Ctrl+C) → paste (Ctrl+V) /letakkan kode berikut tepat diatasnya

Kode Script:
<b:if cond='data:blog.pageType == &quot;item&quot;'> <script type='text/javascript'> //<![CDATA[ var emoRange = "#comments p, div.emoWrap", putEmoAbove = "iframe#comment-editor", emoMessage = "To insert emoticon you must added at least one space before the code."; // Emoticon bar before comment-form $(function() { $(putEmoAbove) .before('<div style="text-align:center" class="emoWrap"> :) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :&gt;) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer <br/><b>Click to see the code!</b><br/>To insert emoticon you must added at least one space before the code.</div>'); var emo = function(emo, imgRep, emoKey) { $(emoRange) .each(function() { $(this) .html($(this) .html() .replace(/<br>:/g, "<br> :") .replace(/<br>;/g, "<br> ;") .replace(/<br>=/g, "<br> =") .replace(/<br>^/g, "<br> ^") .replace(emo, " <img style='max-height:24px' src='" + imgRep + "' class='emo delayLoad' alt='" + emoKey + "' />")); }); }; emo(/s:))+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVLPq9UdldqNOU3tIk-ExWdi2vZR09iSnJcenEmNHDhCz39lYqM2VQzOEXG4_16n3pQ8kC9BrFzDlO2c58i_1PtZ9Sin7IDzNgN8rpS91-SIfBIsBBtBiM81y54S2BI3vjKUUbEKo4tL0/s36/03.gif", ":))"); emo(/s;((+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgufSyvGKIPcdvRYEVhDF9bNq1Vi0ltfitQ9IJjz1_zRfBPrVSiToEqu6kxxrSTmw3HLh_Gnop6JdasCqASEE4K1DVxfZb9GaTVTszf23tTMTlGofLf4KUXNqYSUbsRmLnA8yIo0wSDU4c/s47/06.gif", ";(("); emo(/s:)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3-B9-3Up5qULyaOyImbxbJQ_AQIApG_0gaMHKgn5280lXbNieE1hm5Rnl-yIl3HtmNI1pL7sF1yYR1ZGraU2P6pQSYXYf1apM3Wt3FgjqxUW9iOie6S66AmY-eZ76p8RblVVFYE65P_w/s36/01.gif", ":)"); emo(/s:-)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEIwZa3Rd1KKm8mrFSa90s6ttubleDBDLqj_F4QOhI13maT4QTqfXEkPfGcUsN4fEwQhLL1jGphIJcvey2CrMEgp0mJ59PIClkzBexJYmjooRhq7NUZ7xC6eatq9w_TWfKzNGt5swxdLU/s36/02.gif", ":-)"); emo(/s=))+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2xEycoBBu1oE36Cikec2pDnyot5uIFI6Jaax0zyGSQGVmg31p0lWqfRmAkXcRfr2lJWFzrHkYdnbVuRm2nhBsZAmROJZfB-LgPKPDkN5G19kgs_P6BjTyf9FQC2R-8vqTyJqflHBVX-o/s36/03a.gif", "=))"); emo(/s;(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfJPBFnxQ02JGiFhUruDZLTFzzGpRs3pWTifEF8NaoiQQAYVLSIc1cGtbnqCKTYE2l7HZz1TBOD09NWFJebHf7dWov00y6rjnGui6cEn0BOd35K5a-uQaEyAF2lgd6K6Own_mwT8Vj4BM/s36/04.gif", ";("); emo(/s;-(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQqno2pDRwAkNgeP_qHWPfiFu5jpFni-7c3yuNPHTBQQPWSxMcFHj8NS_uz2YZkkSOzHb_ghl7HwSRAZAX8TESvm60gyArNoO96LVa8mzhkTdB-1lFhWabDvV1zRikc-7t-zUIzzH_gks/s36/05.gif", ";-("); emo(/s:d/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP1AubQx8TpKGQpNMPXhyphenhyphenSbOlrVATdjGsj1xjQYr0NShcllRaL0vKM4XJ5aSK4EHoT_FZLkKIAOIdxhnpFjK1ViQzipuHgSlk46xq5Ma-Z2ysLZSE5mnZEb6S1SucnDYQskt41Pgq40Uc/s36/7.gif", ":d"); emo(/s:-d/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNgLkLPTijAKD7UZLH9OJ_kbqWOoOePLgnLzeZL0t1nmdGvzo9CpXnBnjXy2q_lCEnv2w4VEzV3Cug0pwLx-UI0zL-a-W_lzNUw5pLttZ9A5hePtaIsp9GD91rhAdQDS0E6Xm7W-ooUF8/s36/8.gif", ":-d"); emo(/s@-)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeaTLJaY-oCnevvWSpdshP2RQff_YqI6a-r5wOT1Y_M-Ryi6DcFQTzhKKOYXh6reZdoFCWRwvdwOQ21N5wZE9UAa6KQx2LaiaQeqCcUT34N8A8VN3FGZ7F7ujqffdJ0qIr2DiPLYM-KMg/s36/09.gif", "@-)"); emo(/s:p/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyPBmfzNevCDb-8fA7xvXN5QbWqmWJg0oA6PzpAHbunwEdy5hOJ31Wi4PZowyV3Cy4WxavR0LteSjHZH8rVrdG0z-y0zfN2W9dbCUJ8m19Lmui0JCH2gcnZ6fRcNApwYkTLVA0cK0FmGk/s36/10.gif", ":p"); emo(/s:o/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisElYZJyGTF0zarWfl6zooTCuuWkUEs_dii0nZwKuA1T_f6JX8FG-mlbC2JznIfwiQmjSAsD-RcRwsUCaxL96WvxMRjg4zwWMmuRNYPPhvcroSGcaB0psHTzp6hdxudo2yKAr6_Y6Xd9k/s36/11.gif", ":o"); emo(/s:&gt;)+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0dR0X8WMs-uk31gFZD5bbNF2ud87KDSH4A1FgwZM7M1Vw0HJf9nWMv3EzJ9GHkyIP6Rur8oN1OA9kfjI7PVrGbehBHBt2fTsZXDGV7Gti1uZtbSZE24b60c4jl7wVaMgfetIJj3Snd_o/s36/12.gif", ":&gt;)"); emo(/s(o)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMflcqEiiBC17GjlhijbM2a-HLAT_z100mVJN6KouV_ti6FG128N2S3hnqF1r8hDJLpFxGLp788kzj8DNkitjJHJykiuGi6wBmLNlJEi4aQ24ZUYxK-ntCpEXhNlShtyncpUo98WpYUA/s36/13.gif", "(o)"); emo(/s[-(+/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisU-8JvTfZp_WR7U3n86PK7f-olhJKs1NtI7DH23HA7xkB-ideENPCQTPiEtiwNvwn4Qwgo_JgM1knJq723jZ2Sn4Ahkn5xygEkTE28YEsnB0CcqJDG0vUjF9rsE8cFtn1ylFWY2pA6aY/s36/14.gif", "[-("); emo(/s:-?/g, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinGNOnhzAVQOcjZrdiOvj8amSZo1RXR8tF9fgsxudljogFbvNO3XUlK6qt2hP7ERdIR86W8J5qlXHIjYn41PfEfg8KmTsNY5QGYC9rtPnCdzATN2fG-6uPbOYzWhUuSHljivsPtoWm2EE/s36/15.gif", ":-?"); emo(/s(p)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwMDx9g2w-42qcoXlkx9zpfcafYDwGqVXRWQpmGVjNzdNhDy-nS1XWkMQzkhCVrKU3vvxG305B0Q_eNUkGG0DdASiwfmFF9iInMJGX1ijc_jKxE6K3Zpm6nm_GTo77_E6o9DF-qrW8uBM/s36/16.gif", "(p)"); emo(/s:-s/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihB-IzQ6H12-8CnGvlE1v3lzLzLKCS-VBMfvdz3RnS8Wq4wqZZ4eTuGM-sIoxmUrY0BSWxBKs0A7pfORGLn5j__DUdYFsDzcDxHeiDSMEnYWoqQv3jjj5DLMyiT4sVUq29oSZ761atoLs/s36/17.gif", ":-s"); emo(/s(m)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh34zoMFnZYk6zlywF5N4NXaVvMiE7mXAaHPaDgZnS11LZNWRR1J35dXVF0cO-mHjK-CsjjIs8qcKmIh6CnR6_JSw7XgFYg-aSJaNQTmAQW4gawXHdvIsS4qHZhyphenhyphenQVvGOoGGE_sWUKxJ5M/s36/18.gif", "(m)"); emo(/s8-)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGoKdpeKPaTPeIf09Wt9NxmuGM9NZ2bxo9qnSegSVtcX037l9DCE0JtLAB9BVa9PEgsl-tWPhmD_sYlPyOO2AUih1j5LaxuqIzi7KDidOwl32DO5uQj-yEQksSjCIsetXDzlRNCVvppOc/s36/19.gif", "8-)"); emo(/s:-t/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1OqaR4ZQWrRk0otI6warSaqV4TeZ_aNogjIOxMaA-opOQuQSkBSTKW5iZZk4dQZ6QfR7oj7mzd8_eK9qkGLFSLqEarqwjoPYVccnR3CVaKnktAriiciXld9mRu1z_GO7yAWEZwZaz0k/s36/20.gif", ":-t"); emo(/s:-b/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicx7pss8OconnxECTKV_Jm9oYNUMU7ttUE_A5k33rshNsEZ3AO1wPcEk9UmO4uZFBd-FLhAFK6iC8p4gd4hzwoqSML4WD8TvpoIOkKB9ucFHI4pwpYZPNMeCg83mHySp7sKxCYgwc8q5g/s36/21.gif", ":-b"); emo(/sb-(+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvUVzbv4wIH0RlNrCDXZ3notCJs7JA1ynUa3IUR8NlZCEeTC-L0Z_9eyuOy1o_5JjR0TennWexZdozjvWsgk7mjEsTk4kcZyPipX1ax1ZD0U9N5V2TKVNCpr48Qmb4bgL1Z4WnTO4Twsk/s35/22.gif", "b-("); emo(/s:-#/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO5OuCm0IT7aT4Z1drtdNV0F86Y4vicMXkFxLM64kgHeZv2t21aHdDbsC5N0uBBdw_Jdv3fvvkJ986Ok0g5arWZK_n8paepFRl1SxC1L-l7Hm-H12kpfw1UFRa2GV4wkFoNSTcA4KrilA/s36/23.gif", ":-#"); emo(/s=p~/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih2FDSCG3s9rw1HpjjhVGZGQ1GjNtrv8qGAMie_dMDQs63T_X8piMRzDtLe8jfSD0WcfyxnmwAnUkHLItqZYAHwEnulImYOZfHAvOdD_MPjby0tUm0lR7qEl34QNHJ-L4k6EUrNLf74pg/s36/24.gif", "=p~"); emo(/s$-)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc1CuuXOnIL1M1mrPbpMEMylLtNF6k4ev5hJ1feL8oXlGOAvTDdpSEhu83jJj4f7WxjvLxdHFOg362EUmPijdzi0isCN9MKtAIULOVDt_pkbTdkWywufCPnhcihIIwjFut2Ma3TSUvqws/s36/25.gif", "$-)"); emo(/s(b)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWODZOWRUV8_CfGF7rvclwMEWauqSLZ1upbN0FKGTXVTye99G5lUmM8FkzMBXNbVSkAOMhPC8eVXucBZrv_7pnGbzBJ3QaRkSg0EcyHTNjQ6Y4dWSqnTZF9fZa_agDgYvRjMD4UrU-Uew/s36/26.gif", "(b)"); emo(/s(f)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZmH_USnEw7WEys-HtUHeGiKD6EkhJtH5c2Gzwg8553Z58euV_Fr3iYDkaPWzz3wVnVoRE42RmAcSkh-2xTXQhZ0X5z5JgLpfGMpfTYUdFbCDrt-lYDn6J9IxPi1tW9E1K67doobNbGAw/s36/27.gif'", "(f)"); emo(/sx-)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoDZ6LgDIsFDidvHZqR_jI_vMjuaXdgSgOvmOT6BhC48ldaOg2NPw7CT-LAa6p4leF0GXsaafe9K3p8b3_dG5uwBarayMieoNCVh0JCzrt3OFhvRgfIXpck9JIqnMx-sNbk7MV0Q7kas/s36/28.gif", "x-)"); emo(/s(k)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW4wQgSdm8acvB0OswaIWXY-ttiV-SYDCzq2TD3iCZ_l-b39d1OY0UdL3dzoE9Hsvx5mx1inkL5fiwYlu52nyO3gZVD0YtbZCBHWTiJrADit-jN7pUs7ezlSMPRb0Fx6yGZwalWsaokkE/s36/29.gif", "(k)"); emo(/s(h)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm_oErHsOv42_rydlrKcStWAyJSIGLglaWfpNTHQ9ShvS97X6v-3Z4MGqYT6xs_dO1G2IrU5ggIh5Up2m4_1ibZzVH_BPfdF7hgZ9f8k_QpYiMgMs9kEvEtA_cGSDFjet-Nq4KsIK8HVE/s36/30.gif", "(h)"); emo(/s(c)+/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja1qY70-5e598XpGge9aGW_0rry1x5tnYvgFdsx7zRjuYp97ZtNoJIy7j2LyDxondSxCqIFAnTDVzRTru0v4oSXoC4daTc-bpnJ3ZiLJm6ktPXxBT-_CxXpCyUwxrNqclgJ2Wn7CT2fCA/s36/31.gif", "(c)"); emo(/scheer/ig, "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgatqyXNkBXo9iXGB1N71yTOiuMiIAnXrUYgERiZiRH-nu5-aqh_HIYrdRA_Sr-rdmkp5ywjaTBELzHlvQK0BHs6ohYOex20ZUcgXn22jNb9SCoESQiqwRc5SqBf6XXcytokyc7k1Y9e2Q/s36/32.gif", "cheer"); // Show alert one times! $('div.emoWrap') .one("click", function() { if (emoMessage) { alert(emoMessage); } }); // Click to show the code! $('.emo') .css('cursor', 'pointer') .live("click", function(e) { $('.emoKey') .remove(); $(this) .after('<input class="emoKey" type="text" size="' + this.alt.length + '" value=" ' + this.alt + '" />'); $('.emoKey') .trigger("select"); e.stopPropagation(); }); $('.emoKey') .live("click", function() { $(this) .focus() .select(); }); }); //]]> </script> </b:if>
6. Untuk mengatur besarnya kotak, background, dan border emoticonnya cari kode ]]></b:skin>   (caranya sama dengan menekan Ctrl+F di dalam kotak) dan copy kode dibawah ini (Ctrl+C) → paste (Ctrl+V) /letakkan kode berikut tepat di atasnya
.emoWrap{width:540px; height:100px; background:#fff; border: 1px solid #ccc; margin:5px; padding:10px;}
7. Cari kode </head> (caranya dengan menekan Ctrl+F di dalam kotak) dan copy kode dibawah ini (Ctrl+C) → paste (Ctrl+V) / letakkan kode berikut tepat di atasnya

Kode Script:
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js' type='text/javascript'/>
8. Simpan dan Lihat Blog Anda 

Selamat mencoba ya…semoga berhasil… 

Sumber: 
http://junedalbughisy.blogspot.com/2013/06/cara-memasang-emotion-keren-pada.html

0 comments:

Post a Comment