My Smiley Collection 4 Comment Post [ Just 4 Fun ]


Iseng - iseng ganti script smiley pada bagian komentar..maksudnya sih biar lucu - lucuan aja walaupun sebenarnya masih terhitung jaraaaaaaang banget yang kasih komentar pada setiap postingan saya ( kasian deh looo... ^_^ )


Tapi ada seorang sahabat via YM baru kemarin ini mengatakan ingin banget punya icon smiley yang ada seperti punya saya ini untuk diletakkan pada blog sahabat.Alhamdulillah....Ternyata berguna juga.
Kalo gitu yuk..langsung kita coba dan ikuti langkah - langkahnya seperti dibawah ini :
  1. Silahkan sahabat masuk ke Setting Template halaman Blog,dan jangan lupa untuk membackup terlebih dahulu untuk menghindari kegagalan proses editing template anda nanti.
  2. Cari kode HTML seperti dibawah ini
  3. <b:if cond='data:post.embedCommentForm'>
  4. Copas kode HTML dibawah ini dan letakan sebelum kode diatas.
  5. <div style='overflow:auto; width:100%px; height:200px; padding:5px 5px 5px 5px; background:#FFFFFF; border:1px; border-color:#000000; border-style:solid;'> <center><b> <img border='0' src='http://www.33smiley.com/smiley2/entertainment/famous/9.gif'/>:10 <img border='0' src='http://www.33smiley.com/smiley/other/10.gif'/>:11 <img border='0' src='http://www.33smiley.com/smiley2/people/male/17.gif'/>:12 <img border='0' src='http://www.33smiley.com/smiley2/animals/cats/2.gif'/>:13 <img border='0' src='http://www.33smiley.com/smiley2/communicate/everyday/6.gif'/>:14 <br/> <img border='0' src='http://www.33smiley.com/smiley2/communicate/everyday/18.gif'/>:15 <img border='0' src='http://www.33smiley.com/smiley2/emotions/happy/6.gif'/>:16 <img border='0' src='http://www.33smiley.com/smiley2/emotions/happy/12.gif'/>:17 <img border='0' src='http://www.33smiley.com/smiley2/entertainment/famous/2.gif'/>:18 <img border='0' src='http://www.33smiley.com/smiley2/hobbies/exercise/2.gif'/>:19 <br/> <img border='0' src='http://www.33smiley.com/smiley2/hobbies/exercise/7.gif'/>:20 <img border='0' src='http://www.33smiley.com/smiley2/humor/slapstick/18.gif'/>:21 <img border='0' src='http://www.33smiley.com/smiley2/love/hearts1/2.gif'/>:22 <img border='0' src='http://www.33smiley.com/smiley/emotions/19.gif'/>:23 <img border='0' src='http://www.33smiley.com/smiley/emotions/18.gif'/>:24 <br/> <img border='0' src='http://www.33smiley.com/smiley/emotions/2.gif'/>:25 <img border='0' src='http://www.33smiley.com/smiley/emotions/1.gif'/>:26 <img border='0' src='http://www.33smiley.com/smiley/emotions/14.gif'/>:27 <img border='0' src='http://www.33smiley.com/smiley/emotions/13.gif'/>:28 <img border='0' src='http://www.33smiley.com/smiley/emotions/15.gif'/>:29 <br/> <img border='0' src='http://www.33smiley.com/smiley/emotions/4.gif'/>:30 <img border='0' src='http://www.33smiley.com/smiley/emotions/5.gif'/>:31 <img border='0' src='http://www.33smiley.com/smiley/baddies/3.gif'/>:32 <img border='0' src='http://www.33smiley.com/smiley/baddies/6.gif'/>:33 <img border='0' src='http://www.33smiley.com/smiley/baddies/15.gif'/>:34 <br/> <img border='0' src='http://www.33smiley.com/smiley/baddies/20.gif'/>:35 <img border='0' src='http://www.33smiley.com/smiley/baddies/19.gif'/>:36 <img border='0' src='http://www.33smiley.com/smiley/baddies/14.gif'/>:37 <img border='0' src='http://www.33smiley.com/smiley/baddies/18.gif'/>:38 <img border='0' src='http://www.33smiley.com/smiley/everyday/8.gif'/>:39 <br/> <img border='0' src='http://www.33smiley.com/smiley/everyday/6.gif'/>:40 <img border='0' src='http://www.33smiley.com/smiley/everyday/14.gif'/>:41 <img border='0' src='http://www.33smiley.com/smiley/everyday/17.gif'/>:42 <img border='0' src='http://www.33smiley.com/smiley/everyday/20.gif'/>:43 <img border='0' src='http://www.33smiley.com/smiley/everyday/27.gif'/>:44 <br/> <img border='0' src='http://www.33smiley.com/smiley/everyday/30.gif'/>:45 <img border='0' src='http://www.33smiley.com/smiley/everyday/38.gif'/>:46 <img border='0' src='http://www.33smiley.com/smiley/everyday/37.gif'/>:47 <img border='0' src='http://www.33smiley.com/smiley/everyday/41.gif'/>:48 </b></center> </div>
  6. Kemudian cari Tag </body> pada template sahabat tersebut.
  7. Lalu Copas Script dibawah ini dan letakan sebelum tag </body>
  8. <script type='text/javascript'> //<![CDATA[ a = document.getElementsByTagName('LABEL'); if(a) { for(i=0; i < a.length; i++) { _str = a.item(i).innerHTML.replace(/:\)\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/21.gif' alt='' class='smiley'/>"); _str = _str.replace(/:d/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif' alt='' class='smiley'/>"); _str = _str.replace(/\;\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif' alt='' class='smiley'/>"); _str = _str.replace(/:p/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/10.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/20.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/2.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\|/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif' alt='' class='smiley'/>"); _str = _str.replace(/\=\)\)/ig,"<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/24.gif' alt='' class='smiley'/>") a.item(i).innerHTML = _str; } } a = document.getElementById('comments'); if(a) { b = a.getElementsByTagName("DD"); for(i=0; i < b.length; i++) { if (b.item(i).getAttribute('CLASS') == 'comment-body') { _str = b.item(i).innerHTML.replace(/:\)\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/21.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\)\]/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif' alt='' class='smiley'/>"); _str = _str.replace(/;\)\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/71.gif' alt='' class='smiley'/>"); _str = _str.replace(/;\;\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/5.gif' alt='' class='smiley'/>"); _str = _str.replace(/:d/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif' alt='' class='smiley'/>"); _str = _str.replace(/\;\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif' alt='' class='smiley'/>"); _str = _str.replace(/:p/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/10.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/20.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/2.gif' alt='' class='smiley'/>"); _str = _str.replace(/:x/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/8.gif' alt='' class='smiley'/>"); _str = _str.replace(/=\(\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/12.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\-\o/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/13.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\//gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/7.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\*/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/11.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\|/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/22.gif' alt='' class='smiley'/>"); _str = _str.replace(/8-\}/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/35.gif' alt='' class='smiley'/>"); _str = _str.replace(/~x\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/102.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-t/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/104.gif' alt='' class='smiley'/>"); _str = _str.replace(/b-\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/66.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\L/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/62.gif' alt='' class='smiley'/>"); _str = _str.replace(/x\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/14.gif' alt='' class='smiley'/>"); _str = _str.replace(/\=\)\)/ig,"<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/24.gif' alt='' class='smiley'/>"); _str = _str.replace(/:.\(\(/ig,"<img src='http://www4.shoutmix.com/smileys/cry.gif' alt='' class='smiley'/>"); _str = _str.replace(/B-\)/ig,"<img src='http://www4.shoutmix.com/smileys/cool.gif' alt='' class='smiley'/>"); _str = _str.replace(/0:\:/ig,"<img src='http://www4.shoutmix.com/smileys/eek.gif' alt='' class='smiley'/>"); _str = _str.replace(/:v\)/gi, "<img src='http://www4.shoutmix.com/smileys/twisted.gif' alt='' class='smiley'/>"); _str = _str.replace(/OK\*/gi, "<img src='http://www4.shoutmix.com/smileys/thumbsup.gif' alt='' class='smiley'/>") _str = _str.replace(/0\[\]/gi, "<img src='http://www4.shoutmix.com/smileys/banghead.gif' alt='' class='smiley'/>"); _str = _str.replace(/0"\*/gi, "<img src='http://www4.shoutmix.com/smileys/buttrock.gif' alt='' class='smiley'/>"); _str = _str.replace(/:b\:/gi, "<img src='http://www4.shoutmix.com/smileys/drool.gif' alt='' class='smiley'/>"); _str = _str.replace(/v0\^/gi, "<img src='http://www4.shoutmix.com/smileys/notworthy.gif' alt='' class='smiley'/>"); _str = _str.replace(/2;7/gi, "<img src='http://www.33smiley.com/smiley/other/10.gif' alt='' class='smiley'/>") _str = _str.replace(/@*\*/gi, "<img src='http://www.33smiley.com/smiley/emotions/15.gif' alt='' class='smiley'/>") b.item(i).innerHTML = _str; } } } a = document.getElementById('comments'); if(a) { c = a.getElementsByTagName("DD"); for(i=0; i < c.length; i++) { if (c.item(i).getAttribute('CLASS') == 'owner-Body') { _str = c.item(i).innerHTML.replace(/:\)\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/21.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\)\]/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif' alt='' class='smiley'/>"); _str = _str.replace(/;\)\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/71.gif' alt='' class='smiley'/>"); _str = _str.replace(/;\;\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/5.gif' alt='' class='smiley'/>"); _str = _str.replace(/:d/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif' alt='' class='smiley'/>"); _str = _str.replace(/\;\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif' alt='' class='smiley'/>"); _str = _str.replace(/:p/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/10.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/20.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\)/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/2.gif' alt='' class='smiley'/>"); _str = _str.replace(/:x/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/8.gif' alt='' class='smiley'/>"); _str = _str.replace(/=\(\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/12.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\-\o/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/13.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\//gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/7.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\*/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/11.gif' alt='' class='smiley'/>"); _str = _str.replace(/:\|/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/22.gif' alt='' class='smiley'/>"); _str = _str.replace(/8-\}/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/35.gif' alt='' class='smiley'/>"); _str = _str.replace(/~x\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/102.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-t/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/104.gif' alt='' class='smiley'/>"); _str = _str.replace(/b-\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/66.gif' alt='' class='smiley'/>"); _str = _str.replace(/:-\L/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/62.gif' alt='' class='smiley'/>"); _str = _str.replace(/x\(/gi, "<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/14.gif' alt='' class='smiley'/>"); _str = _str.replace(/\=\)\)/ig,"<img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/24.gif' alt='' class='smiley'/>"); _str = _str.replace(/:.\(\(/ig,"<img src='http://www4.shoutmix.com/smileys/cry.gif' alt='' class='smiley'/>"); _str = _str.replace(/B-\)/ig,"<img src='http://www4.shoutmix.com/smileys/cool.gif' alt='' class='smiley'/>"); _str = _str.replace(/0:\:/ig,"<img src='http://www4.shoutmix.com/smileys/eek.gif' alt='' class='smiley'/>"); _str = _str.replace(/:v\)/gi, "<img src='http://www4.shoutmix.com/smileys/twisted.gif' alt='' class='smiley'/>"); _str = _str.replace(/OK\*/gi, "<img src='http://www4.shoutmix.com/smileys/thumbsup.gif' alt='' class='smiley'/>"); _str = _str.replace(/0\[\]/gi, "<img src='http://www4.shoutmix.com/smileys/banghead.gif' alt='' class='smiley'/>"); _str = _str.replace(/0"\*/gi, "<img src='http://www4.shoutmix.com/smileys/banghead.gif' alt='' class='smiley'/>"); _str = _str.replace(/:b\:/gi, "<img src='http://www4.shoutmix.com/smileys/drool.gif' alt='' class='smiley'/>"); _str = _str.replace(/v0\^/gi, "<img src='http://www4.shoutmix.com/smileys/notworthy.gif' alt='' class='smiley'/>") _str = _str.replace(/2;7/gi, "<img src='http://www.33smiley.com/smiley/other/10.gif' alt='' class='smiley'/>"); _str = _str.replace(/@*\*/gi, "<img src='http://www.33smiley.com/smiley/emotions/15.gif' alt='' class='smiley'/>") c.item(i).innerHTML = _str; } } } //]]> </script>
  9. Lalu tekan Save Template......Selesai.
Nah.....sekarang sahabat sudah mempunyai smiley pada kotak komentar seperti contoh yang ada diatas.Sedikit informasi untuk rekan dan sahabat lainnya.Script smiley ini acapkali tidak berfungsi sebagaimana mestinya bila anda memakai template yang anda dapat dari Sang Guru Blogger "Kang Rohman".So....untuk lebih lanjut,silahkan anda share dengan beliau apabila terjadi seperti permasalahan diatas.
Semoga bermanfaat..

2 comments:

Pujangga mengatakan...

:12 coba dulu ahh... :19

orangndut mengatakan...

:48

:46

Posting Komentar

Catatan: Hanya anggota dari blog ini yang dapat mengirim komentar.