Cara Membuat Widget Random Post di Blog

Suardi13, Selamat datang kembali di blog saya. Di post ini saya akan memberikan Cara Membuat Widget Random Post tetapi Widget ini beda dari ...

Suardi13, Selamat datang kembali di blog saya. Di post ini saya akan memberikan Cara Membuat Widget Random Post tetapi Widget ini beda dari Widget yang lain nya. Widget ini dapat menampilkan Postingan dengan Bergerak. DEMO bisa dilihat di Random Post sebelah kanan kita. dia Bergerak dan terus bergerak dan mengganti setiap posting demi posting.

Cara Membuat Widget Random Post di Blog

Widget Random Post ini berfungsi untuk Menampilkan Postingan kita Secara Random atau Acak. Widget ini SEO Friendly.
Cara Membuat Widget Random Post di Blog
1. Buka Blogger anda
2. Template > Edit HTML
3. Find kode ]]></b:skin>  kemudikan Letakkan kode dibawah ini tepat di atas kode ]]></b:skin>
/* CSS Random Posts Moving */
#suardi_13{overflow:hidden;border:solid 1px #ddd;padding:10px; background-color:none;line-height:1.7em;}
#suardi_13 ul{list-style-type:none;margin:0;padding:0;}
#suardi_13 li{border:0; margin:0; padding:0; list-style:none;}
#suardi_13 li{height:70px;padding:1px;list-style:none;}
#suardi_13 a{color:#3366ff;}
#suardi_13 .news-title{display:block;font-weight:normal !important;margin-bottom:5px;font-size:14px;}
#suardi_13 .news-text{display:block;font-size:12px;font-weight:normal !important;color:#282828;text-align:justify;}
#suardi_13 img{float:left;margin-right:10px;padding:1px;border:solid 1px #cccccc;width:60px;height:60px;border-radius:4px;}
4. Simpan Tempalte
5. Kemudian buka Tata Letak
6. Tambahkan Gadget dan Pilih HTML/JavaScript kemudian Letakkan kode dibawah ini
<script type="text/javascript">
function rpthumbnt(json) {
 document.write('<ul class="suardi_13">');
 for (var i = 0; i < numposts; i++) {
  var entry = json.feed.entry[i];
  var posttitle = entry.title.$t;
  var posturl;
  if (i == json.feed.entry.length) break;
  for (var k = 0; k < entry.link.length; k++) {
   if (entry.link[k].rel == 'alternate') {
    posturl = entry.link[k].href;
    break
   }
  }
  var thumburl;
  try {
   thumburl = entry.media$thumbnail.url
  } catch(error) {
   s = entry.content.$t;
   a = s.indexOf("<img");
   b = s.indexOf("src=\"", a);
   c = s.indexOf("\"", b + 5);
   d = s.substr(b + 5, c - b - 5);
   if ((a != -1) && (b != -1) && (c != -1) && (d != "")) {
    thumburl = d
   } else thumburl = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqaQ5irFC5-Wl6qULmzu_wif0FrVHwnhwg1bl78FORrEEzFgjYdhrkW2ayzXIkZwLEV2CxHQ1HFEiFUpsoP6wkTzKGWDUeOzv4kvjESLvPElIBqx6BemjkTd5ms6lETMGdFpBrOLM3kQLH/d/noimagethumb.gif'
  }
  document.write('<li class="news-title clearfix">');
  document.write('<a href="http://www.seocips.com/" target="_blank"><img src="' + thumburl + '"/></a>');
  document.write('<a href="' + posturl + '" target ="_top">' + posttitle + '</a><br>');
  if ("content" in entry) {
   var postcontent = entry.content.$t
  } else if ("summary" in entry) {
   var postcontent = entry.summary.$t
  } else var postcontent = "";
  var re = /<\S[^>]*>/g;
  postcontent = postcontent.replace(re, "");
  if (postcontent.length < numchars) {
   document.write('<span class="news-text">');
   document.write(postcontent);
   document.write('</span>')
  } else {
   document.write('<span class="news-text">');
   postcontent = postcontent.substring(0, numchars);
   var quoteEnd = postcontent.lastIndexOf(" ");
   postcontent = postcontent.substring(0, quoteEnd);
   document.write(postcontent + '');
   document.write('</span>')
  }
  document.write('</li>')
 }
 document.write('</ul>')
}
function rpnewsticker() {
 last = $('ul#suardi_13 li:last').hide().remove();
 $('ul#suardi_13').prepend(last);
 $('ul#suardi_13 li:first').slideDown("slow")
}
</script>
<script type="text/javascript">
var speed = 400;
var pause = 3500;
$(document).ready(function(){
rpnewsticker();
interval = setInterval(rpnewsticker, pause);
});
</script>
<ul id="suardi_13">
<script style="text/javascript">
var numposts = 5;
var numchars = 0;
</script>
<script src="http://suardi13.xyz/feeds/posts/default?orderby=published&alt=json-in-script&callback=rpthumbnt"></script>
</ul>
Text warna Biru ganti dengan URL Blog kalian
7. Simpan dan Selesai

COMMENTS

Name

Absurd,1,Action,17,Adsense,4,Adventure,2,Anime Campuran,152,banyuwangi,5,Barat,1,BeritaCPNS,6,BeritaEkonomi,16,BeritaIslami,14,Biografi,1,Blog,11,Campursari,19,Ceramah,27,Chord Gitar,1,DAcademy 3,37,dangdut,17,Download Aplikasi,5,Drama,83,Ebook,1,Fakta Menarik,1,Gaya Hidup,4,Harga Hp,2,Hari Game Indonesia,2,Hip Hop,1,Horror,44,Hot,1,House,1,HUT RI,2,Indonesia,13,Info,1,Info Menarik,66,InfotainmentNews,9,Instagram,1,Islam,1,Jandhut,16,Kehamilan,5,kenangan,3,Kesehatan,12,Komedi,23,lagista,3,Lagu Koplo MP3,535,Lite,1,mafia sholawat,28,Motivasi,3,Movies,17,Nada Dering MP3,6,New Cobra,5,New Kendedes,4,new pallapa,26,News,15,Off Topic,1,Parenting,13,Pendidikan,23,Penyakit,2,Pokèmon Gò,1,pop,11,Religi,17,remix,2,Review,26,RGS,3,Rio 2016,2,Romance,11,Saekano,1,Sera,83,Series,2,Sholawat,41,Sony,1,Streaming,1,Superhero,1,Tersedia,107,the rosta,37,Thriller,11,Tips,46,Tips Android,8,Trik,1,Trik Android,4,Tutorial,4,TV Online,1,UpdateInfo,19,Video Koplo,29,Widget,5,Windows,5,Xiaomi,1,
ltr
item
Gado Gado Blog : Cara Membuat Widget Random Post di Blog
Cara Membuat Widget Random Post di Blog
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzfYPYpLltOSoBf-1MQPDB851pzdj6lTGn15lCtZVfGz85F3vg298S6haHiATyVzVoiaJJ8DwcMUM58OPaUYKePtLaaDuB0alhh3a7loDWiZEuZhit-If-0zCo99aZmyZebEKOj_3W0m0/s640/Random+POst.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzfYPYpLltOSoBf-1MQPDB851pzdj6lTGn15lCtZVfGz85F3vg298S6haHiATyVzVoiaJJ8DwcMUM58OPaUYKePtLaaDuB0alhh3a7loDWiZEuZhit-If-0zCo99aZmyZebEKOj_3W0m0/s72-c/Random+POst.jpg
Gado Gado Blog
https://gado008.blogspot.com/2016/01/cara-membuat-widget-random-post-di-blog.html
https://gado008.blogspot.com/
http://gado008.blogspot.com/
http://gado008.blogspot.com/2016/01/cara-membuat-widget-random-post-di-blog.html
true
1679061168556332849
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy