pusatdata

Menyisipkan Gambar di Komentar Blogspot

Sep 28th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. https://www.helmykediri.com/2017/09/cara-memasukkan-gambar-kekomentar-blog.html
  2.  
  3.  
  4. Tambahkan script berikut ini tepat diatas kode </body>
  5. <script type='text/javascript'>
  6. //<![CDATA[
  7. $('#comments p, #comments dd').each(function() {
  8. $('b[rel^="h"]', this).nextAll().filter('br').remove();
  9. $('i[rel="pre"]', this).replaceWith(function() {
  10. return $('<pre></pre>').append($(this).contents());
  11. });
  12. $('i[rel="image"]', this).replaceWith(function() {
  13. return $('<img />').attr('src', $(this).text());
  14. });
  15. // Menyisipkan tag `<h3>`
  16. $('b[rel="h3"]', this).replaceWith(function() {
  17. return $('<h3></h3>').append($(this).contents());
  18. });
  19. $('b[rel="quote"]', this).replaceWith(function() {
  20. return $('<blockquote></blockquote>').append($(this).contents());
  21. });
  22. $('i[rel="code"]', this).contents().unwrap().wrap('<code></code>');
  23. });
  24. //]]>
  25. </script>
  26.  
  27.  
  28. ============
  29.  
  30. Berikut ini format agar file yang anda ingin sisipkan bisa muncul dikomentar blog
  31. Menyisipkan kode: <i rel="code">Kode Anda</i> atau <i rel="pre">Kode Anda</i>
  32.  
  33. Menyisipkan gambar: <i rel="image">Link Gambar Anda</i>
  34. Menyisipkan judul: <b rel="h3">Judul Anda.</b>
  35. Menyisipkan catatan: <b rel="quote">Catatan.</b>
  36. Membuat teks tebal: <b>Teks Anda.</b>
  37. Membuat huruf miring: <i>Teks Anda</i>
  38. [iframe]Masukan Url Embed Video Kalian Disini[/iframe]
  39.  
  40. Mudahkan cara menyisipkan foto gambar dan video kedalam komentar blog semoga bermanfaat , untuk setiap blog yang mendukung penyisipan image dikomentarnya sebaiknya memberikan keterangan agar pengunjung bisa menggunakan fasilitas ini sekian dan terimakasih
  41.  
Add Comment
Please, Sign In to add comment