kp3နည္းပညာ၊၅၅၊

Posted by KP-3မိသားစု | Labels: , ,

ဒါေလးကေတာ့အခုေခတ္စားေနတဲ့Popular Posts Widget ေပါ့ေနာ္၊
မိမိရဲ့ဘယ္ Post မွာ Comments ဘယ္ေလာက္ရိွတယ္ဆိုတာ
အေ၇အတြက္ေလးျပေပးတဲ့ Code ေလးပါ။
Comments မ်ားတဲ့သူေတြအတြက္ဆို၇င္ပိုၿပီးအဆင္ေျပတာေပါ့ေနာ္


၁။Layout

၂။ Add a Gadget
၃။ HTML/JavaScript

ေအာက္မွာCode


<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul style="text-transform: capitalize;">');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=a7d3195528df5e96181a3d2712266226&url=http%3A%2F%2Fဤေန၇ာတြင္မိမိဘေလာ့Linkကိုထည့္ေပးပါ&num=10" type="text/javascript"></script>
<a href="http://kp3family.blogspot.com/2009/09/kp3_8882.html"><span style="font-size: xx-small;">Popular Posts Widget</span></a>

မွတ္ခ်က္--မိမိရဲ့ဘေလာ့Link ထည့္ရာတြင္ http:// မပါ၇???

အေပၚကCodeကိုpasteလုပ္ၿပီးရင္
၄။Save နိုပ္လိုက္ပါ။ ၿပီးပါၿပီ။။
kp3မွမိတ္ေဆြအားလုံးေက်းဇူးကမ႓ာ



Related Post:

0 comments:

Post a Comment