Saturday, 19 November 2016

Installing Widget Simple Random Post

Installing Random Post Simple Widget  - This widget is a widget post arbitrary capacity shows our posts arbitrarily. You're such a great amount of less demanding without the hard - difficult to randomize the connection in every post atapun consistently, in light of the fact that if the gadget is invigorated will be haphazardly independent from anyone else.

Advantages random post widget installed are:


  • Increase the number of pageviews blog.
  • Visitors be happy to see other interesting articles.
  • Our posts we've created the new posts will not be buried us as it will be displayed in the widget this post random (probability 80% we read all the article).


For Installing you live in menu layout and then add the widget "HTML / Javascript" and you input the code below.

<ul id = "random-posts"> </ ul><style scoped = "" type = "text / css"># random posts {list-style: none; margin: 0; padding: 0}# random posts li {padding: 0 0 5px 0; font-size: 90%; margin: 5px 0; border-bottom: 1px solid RGBA (0,0,0,0.1)}# random posts li a {color: # 333}</ style><script type = 'text / javascript'>// <! [CDATA [Homepage var = "http://www.blog-tut.tk/"numPosts = 7;randomPosts function (a) {if (document.getElementById ("random-posts")) {var i = 0; i <numPosts; i ++) {for (var j = 0; j <numPosts; j ++) {if (e [i] .link [j] == .rel "alternate") {link = e [i ] .link [j] .href; break}} var title = e [i] .title. $ t; content + = '<strong> <li class = "random-posts"> <a href = "' + link + ' "title =" '+ title +' "target =" _ blank "> '+ title +' </a> </ li> </ strong> '} ct.innerHTML = content}} function shuffleArray (arr) {var i = arr .length, j, temp; if (i === 0) return false; while (- i) {j = Math.floor (Math.random () * (i + 1)); temp = arr [i] ; arr [i] = arr [j]; arr [j] = temp var}} return arr//]]></ script>
You change www.blog-tut.tk with your blog address. Then if you want to set the number of postings you can change the code numPosts=7 pleased you.

Source image: www.tutorialseosimple.web.id

No comments:

Post a Comment