Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://www.helmykediri.com/2017/09/cara-memasukkan-gambar-kekomentar-blog.html
- Tambahkan script berikut ini tepat diatas kode </body>
- <script type='text/javascript'>
- //<![CDATA[
- $('#comments p, #comments dd').each(function() {
- $('b[rel^="h"]', this).nextAll().filter('br').remove();
- $('i[rel="pre"]', this).replaceWith(function() {
- return $('<pre></pre>').append($(this).contents());
- });
- $('i[rel="image"]', this).replaceWith(function() {
- return $('<img />').attr('src', $(this).text());
- });
- // Menyisipkan tag `<h3>`
- $('b[rel="h3"]', this).replaceWith(function() {
- return $('<h3></h3>').append($(this).contents());
- });
- $('b[rel="quote"]', this).replaceWith(function() {
- return $('<blockquote></blockquote>').append($(this).contents());
- });
- $('i[rel="code"]', this).contents().unwrap().wrap('<code></code>');
- });
- //]]>
- </script>
- ============
- Berikut ini format agar file yang anda ingin sisipkan bisa muncul dikomentar blog
- Menyisipkan kode: <i rel="code">Kode Anda</i> atau <i rel="pre">Kode Anda</i>
- Menyisipkan gambar: <i rel="image">Link Gambar Anda</i>
- Menyisipkan judul: <b rel="h3">Judul Anda.</b>
- Menyisipkan catatan: <b rel="quote">Catatan.</b>
- Membuat teks tebal: <b>Teks Anda.</b>
- Membuat huruf miring: <i>Teks Anda</i>
- [iframe]Masukan Url Embed Video Kalian Disini[/iframe]
- 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
Add Comment
Please, Sign In to add comment