က်ေတာ္တို႔ဘေလာ့ေရးတာၾကာလာရင္တျဖည္းျဖည္းနဲ႔ပို႔စ္ေတြမ်ားလာမွာပါပဲ ေလဘယ္လ္ ေတြခြဲေရးခဲ့လို႔စုစုစည္းစည္းျဖစ္ေပမယ့္
မ်ားလာတဲ့ပိုစ့္ေတြအားလံုးကိုစာမ်က္ႏွာတစ္ခုတည္းျပဖို႔မလြယ္ပါဘူး
ကဲနည္းလမ္းတစ္ခုအေနနဲ႔ကိုယ္ပိုစ့္ေတြကို က်ဘမ္းျပျပီးေတာ့ ဆဲြေဆာင္ၾကရေအာင္
တကယ္လို႔သာပိုစ့္ေတြအားလံုးကလန္းေနရင္ေတာ့
ကိုယ္ဘေလာ့မွာပိုျပီးေတာ့ေနေပ်ာ္တာေပါ့ဗ်ာ
တေတာ္နဲ႔ျပန္မထြက္ေအာင္ဆြဲေဆာင္ႏိုင္မွာပါ
၁.အမွားအယြင္းရိွလ်င္ျပန္ျပင္ႏိုင္ေအာင္"တန္းပလိပ္"ကိုအရံသိမ္းထားပါ
၂.Template=>Edit Html ကုိသြားပါ
၃.Ctrl+F ကိုနိပ္ျပီးေတာ့ ]]></b:skin> ကိုရွာပါ
၄.ေအာက္ကကုတ္ကိုယူျပီးေတာ့ ]]></b:skin> အေပၚမွာကူးထည့္လိုက္ပါ
#random-posts img{float:left;margin-right:10px;border:1px solid #999;background:#FFF;width:36px;height:36px;padding:3px}
၅.Template ကိုsaveလိုက္ပါ
၆.Layout=>Add Gadget=>Html/Javascript ကိုေရြးပါ
၇.ေအာက္ကကုတ္ကိုကူးထည့္လိုက္ပါ
<ul id='random-posts'>
<script type='text/javaScript'>
var rdp_numposts=5;
var rdp_snippet_length=150;
var rdp_info='yes';
var rdp_comment='Comments';
var rdp_disable='Comments Disabled';
var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<rdp_numposts;i++){var found=false;var rndValue=get_random();for(var j=0;j<rdp_current.length;j++){if(rdp_current[j]==rndValue){found=true;break}};if(found){i--}else{rdp_current[i]=rndValue}}};function get_random(){var ranNum=1+Math.round(Math.random()*(rdp_total_posts-1));return ranNum};
</script>
<script type='text/javaScript'>
function random_posts(json){for(var i=0;i<rdp_numposts;i++){var entry=json.feed.entry[i];var rdp_posttitle=entry.title.$t;if('content'in entry){var rdp_get_snippet=entry.content.$t}else{if('summary'in entry){var rdp_get_snippet=entry.summary.$t}else{var rdp_get_snippet="";}};rdp_get_snippet=rdp_get_snippet.replace(/<[^>]*>/g,"");if(rdp_get_snippet.length<rdp_snippet_length){var rdp_snippet=rdp_get_snippet}else{rdp_get_snippet=rdp_get_snippet.substring(0,rdp_snippet_length);var space=rdp_get_snippet.lastIndexOf(" ");rdp_snippet=rdp_get_snippet.substring(0,space)+"…";};for(var j=0;j<entry.link.length;j++){if('thr$total'in entry){var rdp_commentsNum=entry.thr$total.$t+' '+rdp_comment}else{rdp_commentsNum=rdp_disable};if(entry.link[j].rel=='alternate'){var rdp_posturl=entry.link[j].href;var rdp_postdate=entry.published.$t;if('media$thumbnail'in entry){var rdp_thumb=entry.media$thumbnail.url}else{rdp_thumb="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqLo1QZ8gqCn1os9QBeEHh3D-PHqqta5Z4xOAyVtJ9KULaWk3-Jmx84xA7Z24HZvEIpT_YCHHFPDIVGRPZ5AatWAxAmJbNRnsHQ9sZa71r756xn9ESERYbYGKEUU57DXSQYswX1EuR764/s1600/default.jpg"}}};document.write('<li>');document.write('<img alt="'+rdp_posttitle+'" src="'+rdp_thumb+'"/>');document.write('<div><a href="'+rdp_posturl+'" rel="nofollow" title="'+rdp_snippet+'">'+rdp_posttitle+'</a></div>');if(rdp_info=='yes'){document.write('<span>'+rdp_postdate.substring(8,10)+'/'+rdp_postdate.substring(5,7)+'/'+rdp_postdate.substring(0,4)+' - '+rdp_commentsNum)+'</span>'}document.write('<div style="clear:both"></div></li>')}};getvalue();for(var i=0;i<rdp_numposts;i++){document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current[i]+'&max-results=1&callback=random_posts\"><\/script>')};
</script>
<div id="rpdr" style="font-family: arial, sans-serif; font-size: 9px;">
<a href="http://tips4mm.blogspot.com/2013/08/random-post-widget-for-blogspot.html" target="_blank" title="Widget">Random Posts Widget</a></div>
</ul>
<script type='text/javaScript'>
var rdp_numposts=5;
var rdp_snippet_length=150;
var rdp_info='yes';
var rdp_comment='Comments';
var rdp_disable='Comments Disabled';
var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<rdp_numposts;i++){var found=false;var rndValue=get_random();for(var j=0;j<rdp_current.length;j++){if(rdp_current[j]==rndValue){found=true;break}};if(found){i--}else{rdp_current[i]=rndValue}}};function get_random(){var ranNum=1+Math.round(Math.random()*(rdp_total_posts-1));return ranNum};
</script>
<script type='text/javaScript'>
function random_posts(json){for(var i=0;i<rdp_numposts;i++){var entry=json.feed.entry[i];var rdp_posttitle=entry.title.$t;if('content'in entry){var rdp_get_snippet=entry.content.$t}else{if('summary'in entry){var rdp_get_snippet=entry.summary.$t}else{var rdp_get_snippet="";}};rdp_get_snippet=rdp_get_snippet.replace(/<[^>]*>/g,"");if(rdp_get_snippet.length<rdp_snippet_length){var rdp_snippet=rdp_get_snippet}else{rdp_get_snippet=rdp_get_snippet.substring(0,rdp_snippet_length);var space=rdp_get_snippet.lastIndexOf(" ");rdp_snippet=rdp_get_snippet.substring(0,space)+"…";};for(var j=0;j<entry.link.length;j++){if('thr$total'in entry){var rdp_commentsNum=entry.thr$total.$t+' '+rdp_comment}else{rdp_commentsNum=rdp_disable};if(entry.link[j].rel=='alternate'){var rdp_posturl=entry.link[j].href;var rdp_postdate=entry.published.$t;if('media$thumbnail'in entry){var rdp_thumb=entry.media$thumbnail.url}else{rdp_thumb="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqLo1QZ8gqCn1os9QBeEHh3D-PHqqta5Z4xOAyVtJ9KULaWk3-Jmx84xA7Z24HZvEIpT_YCHHFPDIVGRPZ5AatWAxAmJbNRnsHQ9sZa71r756xn9ESERYbYGKEUU57DXSQYswX1EuR764/s1600/default.jpg"}}};document.write('<li>');document.write('<img alt="'+rdp_posttitle+'" src="'+rdp_thumb+'"/>');document.write('<div><a href="'+rdp_posturl+'" rel="nofollow" title="'+rdp_snippet+'">'+rdp_posttitle+'</a></div>');if(rdp_info=='yes'){document.write('<span>'+rdp_postdate.substring(8,10)+'/'+rdp_postdate.substring(5,7)+'/'+rdp_postdate.substring(0,4)+' - '+rdp_commentsNum)+'</span>'}document.write('<div style="clear:both"></div></li>')}};getvalue();for(var i=0;i<rdp_numposts;i++){document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current[i]+'&max-results=1&callback=random_posts\"><\/script>')};
</script>
<div id="rpdr" style="font-family: arial, sans-serif; font-size: 9px;">
<a href="http://tips4mm.blogspot.com/2013/08/random-post-widget-for-blogspot.html" target="_blank" title="Widget">Random Posts Widget</a></div>
</ul>
Aung Myo Kyaw(Tips4mm.blogspot.com)
Download မရဘူးဆိုလွ်င္ေျပာျပေပးပါ..အဆင္ေျပတယ္ဆိုရင္ ေၾကာ္ျငာမ်ားကိုျပန္ခါနီးတိုင္း Click ေပးသြားၾကပါ :)
0 ကြန္မန္႕ေပးႏိုင္ပါသည္:
Post a Comment