sábado, 12 de março de 2011

Tutorial: como colocar emoticons nos comentários do blog?





São aqueles emoticons parecidos com os do MSN. Infelizmente estou sem imagem pra poder mostrar. Pra saber terá que fazer o tutorial. Caso não goste aperte as teclas Ctrl+Z (caso não tenha fechado a página da configuração do blog) ou tenha feito o backup do blog (recomendado). Será utilizado assim que você for comentar. Ficará localizado acima da caixa de comentáriosSó que para funcionar as configurações do seu blog dos comentários terá que está assim: postagem abaixo incorporada.

Caso não esteja faça o seguinte: configurações postagens e comentários > selecione a opção Incorporada e salve.

Ah! Lembrando que para que não aconteça nada de errado, abra o Bloco de Notas do seu computador copie o modelo e cole-o  no bloco. Caso haja algo errado você terá o original. 

Modelo editar Html clique na caixinha expandir o modelo  ou procure por:
<h4 id='comment-post-message'><data:postCommentMsg/></h4>
abaixo dele coloque o seguinte código:

<div style=' width: 370px; text-align: left; border: 2px solid #0084ce; background: #FEF9EA; padding: 10px; color:#0084ce; font-weight:bold; '>
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEnmWvYt5iyuB5KCPQ6gM5HKNv0nwpqcgkMp_aQXHws0pKXSBc9KY8nv6gwq6JsjVxpoMI4ENioTN-88zwdrQ_GNN9BUwGqX2lo7hNT86RMjhRBY0qqbV85k9C63wOwx21aHJbqYegcG0/s800/emoticon-0100-smile.gif'/> :a
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEJy47DtubL57oaHRQjehZFoNDaK89OyM57XCJk2s5YMUlCR3eCV-vnMsvQWXIlR1MbMOOnt0OTfpay_F91oIW4TNtiBVwd3yuED0ZI9rRECdLaOkM-fxJl2N1wV6pKY4M2QcjGGB1twg/s800/emoticon-0101-sadsmile.gif'/> :b
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3L6UZk8-S88xC9Uku8kqdGejGQrMpidbZ01_uxGhEHFDiCHUtb-J9RQztu_GC8ghW4epDVSidIMvieQizNqhIO5eBP-r8dFPrQO0QZcNfQ6JCQy0AcjKHWCV0B2PWbXa3LdKjOq8Cq_g/s800/emoticon-0102-bigsmile.gif'/> :c
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDcOyHbjhojUUWfIwSWOh_M8qKxHvtIDnm3S9-QLVZu4avDjrBCsi2bNXYUG5OElU7QZ4iVSwb_yOwLTptzP86vE12-uuJ1cIwSsCD54q1PRQjDO1xX0vAWgJT7iLCo1FWnIIxZprSzuI/s800/emoticon-0105-wink.gif'/> :d
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS9txiqa08iuJ4YogvOv-nSuyOHAX4qWx8SIcNsq6bNPpVfYjdKVl-uLPtNKftzZTSQ8y2NQaFLnS713t3SX085xyfCH5aPax5tPF1q4TxSYe5AHi8Zn4RINH7UOmMstPX4yvOougD4Xw/s800/emoticon-0104-surprised.gif'/> :e
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQC231Rcl9OOe5A_nUb4h5Qb9MNMPjjCThtxo69dWeJpbcDdwIVuyZBBIuh4z7geGZtU1fDhE6BAN1HY6Cf8HUHC2-FWmmUhs8DjTqdZJmXAEgzLAQoL5Cg5_xwPhh5tpRI7tqRJwelms/s800/emoticon-0106-crying.gif'/> :f
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC7raKoNDBASoKuxq9m0sOOex6QjxAZbwS6r_wc56AcU5j8d0MNLGXUZZHh2mFS8hMsWATBoRGYqBAnZck5hdRgB5Ey82tv_wtYCGjNa7x59ALyfQXzFzU39Td7VgeKQiMM3yHNCxbrLQ/s800/emoticon-0109-kiss.gif'/> :g
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEEEl97sPbLAkWIZeD4xJHEswbZ3wAFyL8EDTaHy9f5M89vgn8WnL4eHFumMSCHZx9sof4b5AXy537HKBngUzec0v_3_KHcoqoUkM2oxlXCrydsmPRA21VTk9HNpql09wCVS2tLlWN68Q/s800/emoticon-0111-blush.gif'/> :h
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6NyBDg2wszBy5WY2_vff7QEQ7j4R8azY-6SBWTY_CRAlj4Y2r5ERMpLwZnzI1mX2C83ffR_VgE04deTAMRlv9GV2SIER9nGnIKFzsCb8ai4PpH1-rW_BnqlsPq61tkhioL7YWyE4jmiM/s800/emoticon-0110-tongueout.gif'/> :i
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitW9jd7aqXcGlc1R9OpwdZLBZq2tQyv3gWmnT6yoxe2k69Kkzg6OxjW0f6fsSMBYBR3rx7CTJ5s-tvQlEaqTelshM5s5Ef4oXJD8BW2cFhITXay3bDuPQ95hqIJm33NwvtwvTmCB8P2xQ/s800/emoticon-0126-nerd.gif'/> :j
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhofA27-coCyhUS8ZwtckRtQkWXTSLBrHw2OLixVye2jQZyRmtepbl_oy055REd6lqiki1RtcLrLKNyr6As0F5u5gIgGDxVHJYakb2fopgGWI8oFB1blwn6UVgpczDL7y4udIISggHd3lU/s800/emoticon-0103-cool.gif'/> :k
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjetzPPWq6506EJtsErXAJ3kMeq-WhsFJ3kA44pcbmL4uvRthPLpSIauCcvYL6BCauDdat6af7UAeEv37Wgc3q-Bkuv_JMCO-eSYoqQTPg3dCdv72a__haHy9E9I7aQsm3JCUmq35GvGlo/s800/emoticon-0130-devil.gif'/> :l
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcSfo4o1LYvsGxB17Qxs0-vu3FUcFk2GS4k00GrbdjPMlaQGcXV1VrHsU5nWfBhxsmpu4lz5is4rUZEnwWab5XcXVyE8ye1EI-YdQsvtJNpN4r-s_UUm4pIOaedkfWFCGVwyQ8gKTWjNA/s800/emoticon-0133-wait.gif'/> :m
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWs7gMzYqWJy2zqz2jHe5OpFUv6adceS3PNx0ZblRBYsHwmsRXt6NraHFHPjl72JaNhbSfX86ZZzWtnsiayWbd1sdqkuoJ730vMBBbPkffILnq6xulcHgdEhOXx2NrJTi9u6kp8tpZtmI/s800/emoticon-0137-clapping.gif'/> :n
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_BWYd_MpI4KUbIjDYmQ-_ea_n-rNBU1wJ6Rf8s1MrCZqxW7b9fWPcKyrgPcz0NG61RBl0GxxQgm3UnFXq1HPm6IGvJGjvfcnIcV1OXTNS8JEX2pOqWyLxuUYP008auzs-9xBlvS8wtI/s800/emoticon-0136-giggle.gif'/> :o
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMU8PBOWI3qhziEARESVF-m4fM4k0GrYGHGgNMNOSlFrnvIc-IchcrEoDakwmWYWhSEnt1aATPe5vkSUr7qgwenFLnSgGA-KlJ4kvqiIJpgY7AAWL40l1YZKiOcO9m8eOtFHdXGvUtXdQ/s800/emoticon-0141-whew.gif'/> :p
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiUESsIorSamcB27IQs2RZtkC1ln7xGrV7U7U7pNlGfbmcv4EzD5whZdqp6Y0uqHOo6qxAxwX42c53VOSryNbCGAtSyMi-eQ6RWoDYHFrZQ3pY7e3cuPmXkAuqKcuy5OGYg_ATFQdZORY/s800/emoticon-0148-yes.gif'/> :q
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1_qBHx9qu93Tq4kOq57muxrm9igWxuByO0Xt6lbdzVWMIwMkoZadtv6XPz4sPeDHvAgNVrVVsRyGqitwtJrX9yZ9leWXb-NshC1EpkKn6N-uSEsApABehbIolvxHtcpy1TOa-mD3NlM0/s800/emoticon-0149-no.gif'/> :r
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3vah82G8WySJt0ZciPuYaK5GeO_ltnvl4bqmmfcJapV6Bculg9RcB6b2ffzeTmT0wfSrLZKJKbVq4f4hhTHaT9q7ski3XaMrgWoAUkBW8PukS6tCkip6PF-vDpFzXrVwR5NxqN30z3c/s800/emoticon-0178-rock.gif'/> :s
&#160;
<img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBj2B68RlHRqShvT45SHzokdhwRjgirlY8RTpKM64PIA4Dpe7SV6Hlcvd26y6wu5AoBBS3vRC1IjBdi1jpgoZJwBUAwL6bTgj71HDhWZEIow5hQlRGkPvPwXQgQtd_m2rCd_hrY47ggFg/s800/emoticon-0155-flower.gif'/> :t
</div>
Não salve agora. 

Procure por </body> e acima dele cole este código:
<script type='text/javascript'>//<![CDATA[a = document.getElementById('comments');if(a) {b = a.getElementsByTagName("DD");for(i=0; i < b.length; i++) {if (b.item(i).getAttribute('CLASS') == 'Author-comment-body' , 'comment-body') {_str = b.item(i).innerHTML.replace(/:j/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitW9jd7aqXcGlc1R9OpwdZLBZq2tQyv3gWmnT6yoxe2k69Kkzg6OxjW0f6fsSMBYBR3rx7CTJ5s-tvQlEaqTelshM5s5Ef4oXJD8BW2cFhITXay3bDuPQ95hqIJm33NwvtwvTmCB8P2xQ/s800/emoticon-0126-nerd.gif' alt='' class='smiley'/>");_str = _str.replace(/:k/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhofA27-coCyhUS8ZwtckRtQkWXTSLBrHw2OLixVye2jQZyRmtepbl_oy055REd6lqiki1RtcLrLKNyr6As0F5u5gIgGDxVHJYakb2fopgGWI8oFB1blwn6UVgpczDL7y4udIISggHd3lU/s800/emoticon-0103-cool.gif' alt='' class='smiley'/>");_str = _str.replace(/:l/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjetzPPWq6506EJtsErXAJ3kMeq-WhsFJ3kA44pcbmL4uvRthPLpSIauCcvYL6BCauDdat6af7UAeEv37Wgc3q-Bkuv_JMCO-eSYoqQTPg3dCdv72a__haHy9E9I7aQsm3JCUmq35GvGlo/s800/emoticon-0130-devil.gif' alt='' class='smiley'/>");_str = _str.replace(/:m/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcSfo4o1LYvsGxB17Qxs0-vu3FUcFk2GS4k00GrbdjPMlaQGcXV1VrHsU5nWfBhxsmpu4lz5is4rUZEnwWab5XcXVyE8ye1EI-YdQsvtJNpN4r-s_UUm4pIOaedkfWFCGVwyQ8gKTWjNA/s800/emoticon-0133-wait.gif' alt='' class='smiley'/>");_str = _str.replace(/:n/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWs7gMzYqWJy2zqz2jHe5OpFUv6adceS3PNx0ZblRBYsHwmsRXt6NraHFHPjl72JaNhbSfX86ZZzWtnsiayWbd1sdqkuoJ730vMBBbPkffILnq6xulcHgdEhOXx2NrJTi9u6kp8tpZtmI/s800/emoticon-0137-clapping.gif' alt='' class='smiley'/>");_str = _str.replace(/:o/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_BWYd_MpI4KUbIjDYmQ-_ea_n-rNBU1wJ6Rf8s1MrCZqxW7b9fWPcKyrgPcz0NG61RBl0GxxQgm3UnFXq1HPm6IGvJGjvfcnIcV1OXTNS8JEX2pOqWyLxuUYP008auzs-9xBlvS8wtI/s800/emoticon-0136-giggle.gif' alt='' class='smiley'/>");_str = _str.replace(/:p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMU8PBOWI3qhziEARESVF-m4fM4k0GrYGHGgNMNOSlFrnvIc-IchcrEoDakwmWYWhSEnt1aATPe5vkSUr7qgwenFLnSgGA-KlJ4kvqiIJpgY7AAWL40l1YZKiOcO9m8eOtFHdXGvUtXdQ/s800/emoticon-0141-whew.gif' alt='' class='smiley'/>");_str = _str.replace(/:q/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiUESsIorSamcB27IQs2RZtkC1ln7xGrV7U7U7pNlGfbmcv4EzD5whZdqp6Y0uqHOo6qxAxwX42c53VOSryNbCGAtSyMi-eQ6RWoDYHFrZQ3pY7e3cuPmXkAuqKcuy5OGYg_ATFQdZORY/s800/emoticon-0148-yes.gif' alt='' class='smiley'/>");_str = _str.replace(/:r/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1_qBHx9qu93Tq4kOq57muxrm9igWxuByO0Xt6lbdzVWMIwMkoZadtv6XPz4sPeDHvAgNVrVVsRyGqitwtJrX9yZ9leWXb-NshC1EpkKn6N-uSEsApABehbIolvxHtcpy1TOa-mD3NlM0/s800/emoticon-0149-no.gif' alt='' class='smiley'/>");_str = _str.replace(/:t/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBj2B68RlHRqShvT45SHzokdhwRjgirlY8RTpKM64PIA4Dpe7SV6Hlcvd26y6wu5AoBBS3vRC1IjBdi1jpgoZJwBUAwL6bTgj71HDhWZEIow5hQlRGkPvPwXQgQtd_m2rCd_hrY47ggFg/s800/emoticon-0155-flower.gif' alt='' class='smiley'/>");_str = _str.replace(/:s/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3vah82G8WySJt0ZciPuYaK5GeO_ltnvl4bqmmfcJapV6Bculg9RcB6b2ffzeTmT0wfSrLZKJKbVq4f4hhTHaT9q7ski3XaMrgWoAUkBW8PukS6tCkip6PF-vDpFzXrVwR5NxqN30z3c/s800/emoticon-0178-rock.gif' alt='' class='smiley'/>");_str = _str.replace(/:a/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEnmWvYt5iyuB5KCPQ6gM5HKNv0nwpqcgkMp_aQXHws0pKXSBc9KY8nv6gwq6JsjVxpoMI4ENioTN-88zwdrQ_GNN9BUwGqX2lo7hNT86RMjhRBY0qqbV85k9C63wOwx21aHJbqYegcG0/s800/emoticon-0100-smile.gif' alt='' class='smiley'/>");_str = _str.replace(/:b/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEJy47DtubL57oaHRQjehZFoNDaK89OyM57XCJk2s5YMUlCR3eCV-vnMsvQWXIlR1MbMOOnt0OTfpay_F91oIW4TNtiBVwd3yuED0ZI9rRECdLaOkM-fxJl2N1wV6pKY4M2QcjGGB1twg/s800/emoticon-0101-sadsmile.gif' alt='' class='smiley'/>");_str = _str.replace(/:c/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3L6UZk8-S88xC9Uku8kqdGejGQrMpidbZ01_uxGhEHFDiCHUtb-J9RQztu_GC8ghW4epDVSidIMvieQizNqhIO5eBP-r8dFPrQO0QZcNfQ6JCQy0AcjKHWCV0B2PWbXa3LdKjOq8Cq_g/s800/emoticon-0102-bigsmile.gif' alt='' class='smiley'/>");_str = _str.replace(/:d/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDcOyHbjhojUUWfIwSWOh_M8qKxHvtIDnm3S9-QLVZu4avDjrBCsi2bNXYUG5OElU7QZ4iVSwb_yOwLTptzP86vE12-uuJ1cIwSsCD54q1PRQjDO1xX0vAWgJT7iLCo1FWnIIxZprSzuI/s800/emoticon-0105-wink.gif' alt='' class='smiley'/>");_str = _str.replace(/:e/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS9txiqa08iuJ4YogvOv-nSuyOHAX4qWx8SIcNsq6bNPpVfYjdKVl-uLPtNKftzZTSQ8y2NQaFLnS713t3SX085xyfCH5aPax5tPF1q4TxSYe5AHi8Zn4RINH7UOmMstPX4yvOougD4Xw/s800/emoticon-0104-surprised.gif' alt='' class='smiley'/>");_str = _str.replace(/:f/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQC231Rcl9OOe5A_nUb4h5Qb9MNMPjjCThtxo69dWeJpbcDdwIVuyZBBIuh4z7geGZtU1fDhE6BAN1HY6Cf8HUHC2-FWmmUhs8DjTqdZJmXAEgzLAQoL5Cg5_xwPhh5tpRI7tqRJwelms/s800/emoticon-0106-crying.gif' alt='' class='smiley'/>");_str = _str.replace(/:g/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC7raKoNDBASoKuxq9m0sOOex6QjxAZbwS6r_wc56AcU5j8d0MNLGXUZZHh2mFS8hMsWATBoRGYqBAnZck5hdRgB5Ey82tv_wtYCGjNa7x59ALyfQXzFzU39Td7VgeKQiMM3yHNCxbrLQ/s800/emoticon-0109-kiss.gif' alt='' class='smiley'/>");_str = _str.replace(/:h/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEEEl97sPbLAkWIZeD4xJHEswbZ3wAFyL8EDTaHy9f5M89vgn8WnL4eHFumMSCHZx9sof4b5AXy537HKBngUzec0v_3_KHcoqoUkM2oxlXCrydsmPRA21VTk9HNpql09wCVS2tLlWN68Q/s800/emoticon-0111-blush.gif' alt='' class='smiley'/>");_str = _str.replace(/:i/ig,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6NyBDg2wszBy5WY2_vff7QEQ7j4R8azY-6SBWTY_CRAlj4Y2r5ERMpLwZnzI1mX2C83ffR_VgE04deTAMRlv9GV2SIER9nGnIKFzsCb8ai4PpH1-rW_BnqlsPq61tkhioL7YWyE4jmiM/s800/emoticon-0110-tongueout.gif' alt='' class='smiley'/>")b.item(i).innerHTML = _str;}}}//]]></script>


Pronto agora sim você pode salvar :) .
Beeijos :*

5 comentários:

Olá! Obrigada pela sua visita e comentário♥

Leia também:

Subir