Sabtu, 29 Juni 2013

Tips on How to Make Random Posts in Blog

Sharing info - already explained About, Tips and How to Make Popular Post in the Blog, Now I will Share Random Tips on How to Make Posts in Blog, which means it will bring up the old Post posting my friend, that my friend is the Old Post not ignore it .. Want ge knows his way where? Ok just so into the scene.

Here's Tips on How to Make Random Blog Posts:

1. Log in to your Blogger account pal of course.
2. Entrance on the Layout.
3. Click on Add a Gadget in the position that my friend wanted.
4. Mode select HTML / Javascript.
5. Enter the following code.

 <div style="overflow:auto; width:auto; height:250px; padding:5px;border:px solid #000000; font-family:julee; font-size:15px; font-color:#0000FF;">
<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=10;function randomposts(json){
var total = parseInt(json.feed.openSearch$totalResults.$t,10);
for(i=0;i < numofpost;){flag=0;randarray.length=numofpost;l=Math.floor(Math.random()*total);for(j in randarray){if(l==randarray[j]){ flag=1;}}
if(flag==0&&l!=0){randarray[i++]=l;}}document.write('<ol>');
for(n in randarray){ var p=randarray[n];var entry=json.feed.entry[p-1];
for(k=0; k < entry.link.length; k++){if(entry.link[k].rel=='alternate'){var item = "<li>" + "<a href=" + entry.link[k].href + ">" + entry.title.$t + "</a> </li>";
document.write(item);}}
}document.write('</ol>');}
</script>
<script src="http://shareddinfo.blogspot.com/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>
</div>
6. The Save or Save. Done.
evidence:

1. Transform Writings which Tinted Red with Url buddy
2. Replace figure 10 with sobat who desire how Total posting long which will in Pop up

Thus Tips or How To Make Random Posts in Blog, this hope will benefit you

Tidak ada komentar:

Posting Komentar