Menambah Emotikon Di Komentar Dan Di Artikel Blogger
Menambah Emotikon Di Komentar Dan Di Artikel Blogger | Santai sejenak, siapkan  (c)  hangat, mainkan music Daft Punk... Kalau kemarin aku pernah share, model emotikon terbaru dari Kaskus untuk Blogger :D yang ada di komentar. Ada yang bertanya di "Bisa ga kalau di artikel ?" jadi kali ini model emotikon untuk di artikel dan komentar.

Model javascript yang sama hanya di tambah dengan .post-body saja.

<script type='text/javascript'>
//<![CDATA[
jQuery(document).ready(function () {emoticonx({
emoRange:"#comments p, div.emoWrap", .post-body,
putEmoAbove:"iframe#comment-editor",
topText:"Klik untuk melihat code!",
emoMessage:"Untuk memasukkan emoticon setidaknya ada satu spasi sebelum kode emoticon."
})
});
//]]>
</script>

#comments p sebegai tempat emotikon akan di panggil. Lebih tepatnya pada threaded. Kemudian ditambahkan dengan .post-body sebagai pemanggilan untuk emotikon muncul di halaman post.
Letakkan Javascript di atas kode </head>

<script src='http://yourjavascript.com/11303911312/emotikon.js' type='text/javascript'/>

Backup Javascript

<script type='text/javascript'>
// Emotikon Edited & add by Wammy San
//www.bocahit.com
//original from MKR
//<![CDATA[
window.emoticonx=(function(){var a=function(c){var f=c||{},d=f.emoRange||"#comments p, div.emoWrap",e=f.putEmoAbove||"iframe#comment-editor",b=f.emoMessage||"To insert emoticon you must added at least one space before the code.";$(e).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/>'+b+"</div>");var g=function(j,i,h){$(d).each(function(){$(this).html($(this).html().replace(/<br>:/g,"<br> :").replace(/<br>;/g,"<br> ;").replace(/<br>=/g,"<br> =").replace(/<br>\^/g,"<br> ^").replace(j," <img style='max-height:24px' src='"+i+"' class='emo delayLoad' alt='"+h+"' />"))})};g(/\s:\)\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBQPb0L_zoLjF7J15vuPkuOiKNSvN0kCbcn1UjE_60FKJGk7tn7yC5OONzNzEgEy_EjCn8w7jhhWxOIL7RZxyzsmzKSSXMaub9rB10dNm7QKjaJeq5RzjBhdL-5NOavqXEQ-ER1ZxJ3DM/s36/03.gif",":))");g(/\s;\(\(+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxld1S1gK2Q9zRUAhZhbycRgw7v9pJaRHecrX1r9Q5HirjpPadsi3pJQauMPVLYA2CX2xFYFlakU4JiD0zyYFy_LUyYAHvz5WdgXz-6l40am5CXgOvlKcV3_xdyZzpojYbsfZg7LGma7k/s47/06.gif",";((");g(/\s:\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtmdeD-zbLaWgWrcKTcNheNsBBxeH0TaB9acl6OmrwTvMRW1x5cwG4PL1dhrXLcCg0FSw6mr7_r6PqWv2c-aRcZBwpfX27sMW-HUwBYmOJKY12I_apdrYpvXGid2XszqNuGJkOOn0BcQM/s36/01.gif",":)");g(/\s:-\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXEd-n1I-sM_fWY6MWYN_GGcC62UjREfZ88gbnZkqFP_SPIO0SA9IW25vuKf5hSC5zfI1uHOAhFOQNAI8Lv1KIYsm9-OwUdKre2rdE27mpYqeFZOll0aifKWlfft1ekXDLpaTpdwJo5_o/s36/02.gif",":-)");g(/\s=\)\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrRQ_xVGok-XlFNEHKiEZHGeI0Gmv8NXytf-NWEiB3cTgb9zK_k9Qzm-YzewwN4l7YyNTYuidovSOvmtNbLL9wN03TkaQ9NCms6ta6gMi8mnTgkxOIOl6HD2yCIfTjPpnWH1deQAjUg4k/s36/03a.gif","=))");g(/\s;\(+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg161tqrsuWQGE5F5VaF8M_w5DUEHP0lXa-kaDAdf1vUu2vYQrtUbuObxLX1o8aj-WNEoLrnZ5Aq9s4oaJoMlyTwUbeFJOItXSidg53ONYttsGcEiGZNZVA1Vw-U8sFZyo_dUNJ9qVxcDk/s36/04.gif",";(");g(/\s;-\(+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3OZvT2NmnzSNJCNZCbcOTU8s00dQ7bEnNQjgG72YBuJc8gGzZVSB6xEI2u3dO0M-APuTFvwCklCUYtArSrDPa-hPWolMDIGJPxaoVKZKp2WCDGRrXkTzfGo35AhcwbHYmYxDtBP9sf0o/s36/05.gif",";-(");g(/\s:d/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizcMQhwuNfrrR-K7grh0diYF6pqRasNW8FhfyHe7fu-x7qTwzZf8dxTceTtpt41_HuVRGgneAJWnUFSePJpc01cQLuWgsbN1VCdK-HFNk0AcY1pbqDacYomSimpEohWvNmzkueDZ5MSek/s36/7.gif",":d");g(/\s:-d/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvQJjkl2KrB363q1gTUvaUn8MwxM6-WMhVk1Npnnf0l4J5NVIsLwmyBmRC-ixtpHffB-NvabiV1TYURAwoCeh_cXqTNobXyrc_PjsHify7OHEU3tUhkb3uGODNSzfAI6y1yZ-jmUIitGI/s36/8.gif",":-d");g(/\s@-\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXZKNRx_JMntDm9QAbRHS2VjovCOseri9Xx-_msdJMMTPnVhXj5nM2ou-BlpPSuY-p64EPCznxINzEwKzkJ6tx4EhXBrNByub1avDxo9IfB-9gl15OCdNMsUq1oXk4hdMq9SIRzpQrcl0/s36/09.gif","@-)");g(/\s:p/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq8ZvJ86BeeFHHPKtTYLWiAjUGY0XBu03WMYZERDfb3bbTNNKt7sYdrqUaPRSJYik-C56lCn-_2wbLMdYwP0NsD1WF7g_7IX39sIQcYayL_tUbIMPNJVreN2w58FFcwIVHYrsP_YnOgNA/s36/10.gif",":p");g(/\s:o/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH9De3iax4qpIhE7aYsX1lvRseu3WQNSzctNc_1cuyS_vEQYuggW_ggKhbGXznJFIxm4uTA8oJrgeOq64uj3w1SSlNVm7oZl4ly82LlgsbMGEGL4iL8_QhX7rjePDnwa1id75Rc7nip2w/s36/11.gif",":o");g(/\s:&gt;\)+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGK20UHbF6BoIdEi7lDtXD9UnX9A3H5O5NPmpngqjrIuGmJeHhI2_aCh0H5lDylJpT8A0Jrh3QTtte2vnOF-ZAWTnfmD9OayOQdfFhURW3DP6wa6Hz3vvIRoLg3UfXhw7FN7U7_QWLUyE/s36/12.gif",":&gt;)");g(/\s\(o\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNUoTzXwtYvyVQYZFCUK_6EYPnMZEriWFSw3hzZ09aU6P6RjsIwx5QyXFT6CvEWpowKs5aHERCLgKb5tQZRs-0aPIxCDVLPQTVux3nxLftzNNeADJPP-M6eIZSsaa4nNMEaUa2SNpAo6E/s36/13.gif","(o)");g(/\s\[-\(+/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1kaK1OrrwhBDumvIax-8AqvfIlCACmIY-awygXLWeQj714izvPj_CzGLODbzwpMisFMHjLY3nQ4j5rudRMpgF4lxn5DASULffGM1IlCrxEMZyASc1z4oVjtu9KgYZSEJSkoAGCj4cYeI/s36/14.gif","[-(");g(/\s:-\?/g,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh35O0wXsv7_vmFpOAA_74PiIJBsuGuBoDMZbsguZ5HPso_Naxe9Zrv3GkLhYS4bNQ5Ni56a3ezMWTBQ9ZGwVsWZz8O0jAhp7Y-SNicEz5P-8a9jnEmc8enElcJjaBahRxfKZariXw__00/s36/15.gif",":-?");g(/\s\(p\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_selP61l0hSueqFOXai7WoHoUmKvabfrsmU-FsTylO-nLOWmbpCxll5b6kXUK98YNkQQc9WVQCQyjCLROO1UxhB6NN9pUgipGW5Zd29KC5NJpmaI1kmuZoQ7iDLKujUlv04Wn0rzYXug/s36/16.gif","(p)");g(/\s:-s/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik6k_tL9cxMu-cMyxCsxJGcysyXk9x2MnhMF1SgmOAePJuAgCPNwNZOSc6x8vHBqMeVoi5ItXjFYiiV6f59NfiplaJQWarDBtNpwIOHoiKGRoCzBTBg4zUknt739dUEMe0czKi9dmnC-0/s36/17.gif",":-s");g(/\s\(m\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtSA352CZCUUaigEshwAfIZrEpG3LOahu6MmDMiZIFed7KxxWvb0ZjeyLbPQjOLCU8vsU2oxShu0Zk7W3uv_j_9JJ67eZtTCrGh8u0m2z6PmNKfbNmDs9a0n8N45joN489jVFCfn-jh2k/s36/18.gif","(m)");g(/\s8-\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRJHlGOu_tpH6ffhklOodpBU6-C2fHuo7_wxLc_Iu9g_wJYpJRyvLyrD6H6JZcFbch2sSATFLTeyFytBFELCHaOMOSHRhKvsaclZ87tyueYhoG8ooYTIUeiRj_LGEtqo83lbpwHDWHqC8/s36/19.gif","8-)");g(/\s:-t/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghNfULdIWaIRNuzJxrdvmMqBpBPpw1DRqg8SAlH9gGReHecH7VcEhg70W2LinMdStZFut7ZAOrnq9KVcYP0GYuxiiOp1hEAJZrkDZoGgqUXbqctmLOaYpK4BAY-b8QsIeeoPqhIfCVWiA/s36/20.gif",":-t");g(/\s:-b/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPqIEono7UxDM9Q9-C937Cd1pVmi2yYic7aa79LaZDVerQee4dFEzhWHXDIWOGQuCLF1i42lkFgcW726TcI4vZr6eh3J-Y11vZdfGbocGA4b0043aQLWh4GL1oLH1xi6WBfo9Kx-jsLRI/s36/21.gif",":-b");g(/\sb-\(+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AwX-i7SIGC4yoBqA_7kjYXqPceExXA4x8XHTLShQSDQ4jULmNnZXEmmAn-eRG9-a3ubWGo_5wwCvAb5IICWNj41mnooUm6frOLzRNLwFhYS3hEgSJZF2jjtX5861U7pMqVU_LYfAeA8/s35/22.gif","b-(");g(/\s:-#/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN9bAOVirNtcIOvPqUCEi_DtRp5yrGomhW5rw3HpmVru978xuHd6QJfRFXVJQUXGYzu8wSVgGf3-EOKZT7cvFc8FggwiL2UgBwSKCtzzqsEGdkowC8kyjbFgr9X_BIUM3fpuQfWeqG68o/s36/23.gif",":-#");g(/\s=p~/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijJEfAnl183liAQPzb5DKaek5YxItiob5gwrAVAHQIVYXmKgzw3z2XA-qQOKQRftd6CpygTv-vWArqXKQZgtHBhXYmPKir6k7nodkF1sdWuBUmvGnQcJhTWK6IOGn9C-V6w0qHazL9F5U/s36/24.gif","=p~");g(/\s\$-\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDgyIjRmapgsBZdVqvU2Y6KUTSTTWyc_MbgXMoFXlG0mScQRAkZt3inEidh8uhOqh6tmrpLRjtU93LdAsael0L2Of-y8VHZk5ZwZ9fnMQjw5tnqKRbGz74nQ9R2mIhZWoti4lGJNljXzk/s36/25.gif","$-)");g(/\s\(b\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG4dOId7Wf_kFHUVF4QpcH6m8r3MbYWnBqAzFVnki_3C-woo8YUOVbRUwpzwasBtjHG1eIlUGOu81RFcCGDFCT7yOm5q0ynUAVQYQ3_qtocZsD65WeqkIjzG_KSPuWkCBP9tx5Q0jIyuQ/s36/26.gif","(b)");g(/\s\(f\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXC5OMdmztR50WaQSNp28GNTOcN-4FRXqn12U96_pnNDG1kl3n8YrkT_W6IPZAEWq2ARuX4DIzydLxiMynxb789nS7GRP_w5mmYVFAZC9hen627jVPiKk92EcdKSgzxYbxGy3rBgo0uKo/s36/27.gif'","(f)");g(/\sx-\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6P_S-rgv7Ke8Hq3QtvJ-KvHILQdf7pCbI8Y1kpnz0IpkdXfLT13zpgygOLs-Hw16JCVSmo2Qcll-AEP-O1Usgdj_VgEd8Jp6NFH2oUP47n0hxh2oHgBZIq-cAi6iedKOy-FsZKOgbqLo/s36/28.gif","x-)");g(/\s\(k\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitrEemFhEHCXdchT1AhS0RajRkYRPk6Sny_KZtLKio3WsTKIF3rFlEaamBiKjZP4Ov5zxv9z0LtoBrdniGIPQljvtev3ccmr-s7Fe0lhpPWWKF9waREv9f8cX78XK4Wx5EoxXFq_TIMGw/s36/29.gif","(k)");g(/\s\(h\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4rPz_7E0UmhfZzqk6cOL8DxNnY9FN8vpftwfQ_pM-HRQ2gz9ljqJ7rVg3jdxxkPbzgENdWpQFs2T58zsR9E1YMkhsaP3tNjko-iO31xsHFT73mCtk9H0PP0R03jq_op4X-3aFV9v8swg/s36/30.gif","(h)");g(/\s\(c\)+/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGsrGRJ03RtMxLyYAQYzMYo3zKRn1_9M8dBhIwhBZSie2W-gEXHcjrzIpCRcKthKQ4Vf6cBPI9IEyzpeUh5SEIZn5-qgvU2gvEyp9eO3Vf50vGEfxx4tXTTRr6FJe67VGLHaOizp7bguc/s36/31.gif","(c)");g(/\scheer/ig,"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCcr5jIi1oJFCW6vnOoDj8lWt4MhdugICQysm4A1uQFr_6uKYE2PALNKSQwbamyL1TiTssHa01gKWRH7PmXLacp8543oCb_Oxntxszw7h6Q83UvfpqjUCQlagRsJSnr78g_MOJVwQXpEw/s36/32.gif","cheer");$("div.emoWrap").one("click",function(){if(b){alert(b)}});$(".emo").css("cursor","pointer").live("click",function(h){$(".emoKey").remove();$(this).after('<input class="emoKey" type="text" size="'+this.alt.length+'" value=" '+this.alt+'" />');$(".emoKey").trigger("select");h.stopPropagation()});$(".emoKey").live("click",function(){$(this).focus().select()})};return function(b){a(b)}})();
//]]>
</script>

Demonya adalah artikel ini.  (h)

1 comments:

 
D2D :] © 2013. All Rights Reserved. Powered by Blogger
Top